I have a large xml file (>30mb) that has paths such as yoursite.com/category/section/3389121/title-article
I need to strip everything except the node number in the path. I thought maybe using Regex, but not sure how to make it not apply to the rest of the xml fields.
Any thoughts?
Thanks
You can use PHP’s SimpleXML library to parse out just the XML fields you need, and then run your regex against them. Once you see the syntax it uses to do this, you’ll understand why it’s called SimpleXML.