I'd like to remove a tag/node entirely (including children) in notepad++ (or other FOSS text editor) that may/may not have children, and possibly grandchildren, etc... I've tried regular expressions (noted on a few other SO Questions) but having trouble with the multiline aspect of these nodes/tags.
<exampleTag id="blah" name="bob"> <childTag possible="element" /> <moreChildren> <evenAnotherLevel /> </moreChildren> </exampleTag> It is funny that both textWrangler and notepad++ can collapse a node for easier reading:
Which makes it easy to delete the whole thing manually, but this won't work for a file with potentially 10000s or more of these tags. Is there a tool/plugin out there that can do this? Right now I break out node.js to get this done, but that isn't a solution for laymen.
No comments:
Post a Comment