Regular expression Question
Posted: Tue Sep 04, 2012 5:00 am
Help
How would I find and replace instances of the following:
<url>
<loc>http://www.eg.com/product/doll-pens%2C-set-of-5.do</loc>
<lastmod>2012-08-14</lastmod>
<priority>0.5</priority>
</url>
the above formatting is exactly how it is in my file with all white spaces exactly the same.
want instances of the above to be removed completely and not replaced with anything - just to clarify, this will be all url instances that contain '%'
Also lastmod and priority are the same values in all instances
many thanks in advance.
How would I find and replace instances of the following:
<url>
<loc>http://www.eg.com/product/doll-pens%2C-set-of-5.do</loc>
<lastmod>2012-08-14</lastmod>
<priority>0.5</priority>
</url>
the above formatting is exactly how it is in my file with all white spaces exactly the same.
want instances of the above to be removed completely and not replaced with anything - just to clarify, this will be all url instances that contain '%'
Also lastmod and priority are the same values in all instances
many thanks in advance.