Regex to match XML Element & Content
26 Jul 2013 • TechnologyA quick regex to match open- and close-element tags in XML and the intermediate content, where element
is the tag name.
^(.*<element.*)$(.|\n)*?(<\/element>.*)$\n
A quick regex to match open- and close-element tags in XML and the intermediate content, where element
is the tag name.
^(.*<element.*)$(.|\n)*?(<\/element>.*)$\n