regexeditplus

using regex to modify an xml


I need to change the following

<elor>crap</elor></utha>

to

    <elor>crap</elor>
</utha>

I want to use regex to do this, I don't want any alignment mismatch (for some lame reason) it would be more helpful if anyone could point out editplus3 regex for this.

Let me broaden the scope of this question, I used java DOM API to add element to existing XML, where this alignment mismatch is happening, I having trouble merging this file. If it is possible to avoid alignment issue at the DOM level I am more than happy to try.


Solution

  • Never mind, just explore EditPlus 3 regex capabilities. use /n and /t judiciously It would solve this issue.