in reply to Re: regex - need first child of parent
in thread regex - need first child of parent
For the record, as a developer that manipulates XML a lot!!!, I EMPHATICALLY AGREE regex is not the way to go and I'm not happy that I need to rely on regex to solve my problem. Unfortunately, I am in a situation where portions of both XML and SGML documents need to be modified and the modifications must be restricted to those specifically made (e.g., entity references cannot be resolved). The current implementation uses string-based manipulations to ensure this and regexes to retrieve values and identify replacement sections. I simply need to retrieve one more thing and therefore need a regex to do so.
My hope would be that at some time I'd be able to find a solution that allows us to use XPath, etc. yet still be able to re-generate the *exact* same XML/SGML originally parsed.
THANKS AGAIN! You are a life-saver!
|
|---|