Find everything between two XML tags with RegEx

It is not a good idea to use regex for HTML/XML parsing…

However, if you want to do it anyway, search for regex pattern

<primaryAddress>[\s\S]*?<\/primaryAddress>

and replace it with empty string…

Leave a Comment