April 4th, 2013, 11:47 AM
How to remove words between 2 word ?
I have the xml file with content (example):
How to remove words between <Images> and </Reviews>. Thank you very much ! Please help me
Above example data is small. Actually, I have a large data
Sorry for my English !
April 4th, 2013, 12:06 PM
did you know that god kills a kitten whenever somebody tries to parse XML with regexes?
No, seriously: What's the broader context of this task? Because I'm pretty sure there's a more intelligent (and sane) solution involving an XML parser.
In this example, you could just kill all child elements of the containing element and then collect the text nodes.
Comments on this post
June 20th, 2013, 11:53 PM
$string = "Hello
I am Nguyen";
$string = preg_replace("/<Images>.*?<\/Reviews>/ism"," ",$string);
i was test at php.toolregex.com
it result Hello everybody, I am Nguyen
Originally Posted by kegiaumat055