I'm parsing XML manually, for a specific task, and I've got a regex that works 90% of the time. I'd like some help figuring out how to modify my regex to get that last 10%.
So first off, this is my regex:
/<$element\s*(.*?)(\/>|>(.*?)<\/$element>)/si
which matches all the stuff inbetween a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.