Archive for the ‘regexp’ Category

Regexp to split XML Tags into one tag per line

September 20th, 2010 No comments

I was working with an XML file which was all jumbled onto one line. I wanted to split the XML tags out to make them human readable.

This is the Regexp I used puts a carriage return between all >< but not ></


This neatly separates the tags into one tag per line. Note the use of regex memory .

Categories: regexp Tags: