haw to remove all lines contains specified caracters ?
Posted: Sat Apr 19, 2014 9:17 am
Heloo
I need help with editing xml file with many producs ( >1000)
I want to remove all lines with contain specified caracters, for example my code is:
<media><images>http://www.chinabuye.com/media/catalog/ ... es></media>
I need to remove all lines contains "<images>http://www.chinabuye.com/media/catalog/product/f/i/"
or all lines with images like that: <images>http://www.chinabuye.com/media/catalog/ ... pg</images>
I need to keep only this type of images : <images>http://www.chinabuye.com/media/catalog/ ... pg</images> what contains a number after: <images>http://www.chinabuye.com/media/catalog/product/
what method exists for this ?
thanks
I need help with editing xml file with many producs ( >1000)
I want to remove all lines with contain specified caracters, for example my code is:
<media><images>http://www.chinabuye.com/media/catalog/ ... es></media>
I need to remove all lines contains "<images>http://www.chinabuye.com/media/catalog/product/f/i/"
or all lines with images like that: <images>http://www.chinabuye.com/media/catalog/ ... pg</images>
I need to keep only this type of images : <images>http://www.chinabuye.com/media/catalog/ ... pg</images> what contains a number after: <images>http://www.chinabuye.com/media/catalog/product/
what method exists for this ?
thanks