How to remove empty lines

Tool for Search and Replace across multiple files.
maxdido
Posts: 4
Joined: Sun Apr 01, 2012 9:20 am

How to remove empty lines

Post by maxdido »

How can I remove several carriage returns or new lines or whitespace (I don't know what it is) that occure before <movie>. see this example:

Code: Select all



<movie>
    <id>tt1423894</id>
    <title>Barney's Version</title>
    <plot></plot>
    <genre></genre>
    <rating></rating>
    <year>2010</year>
    <outline></outline>
    <plot></plot>
    <tagline></tagline>
    <thumb>file:///E:/UMC/Barney's Version[Cover].jpg</thumb>
    <fanart>file:///E:/UMC/Barney's Version[Backdrop].jpg</fanart>
    <watched></watched>
</movie>
User avatar
maxdido@gmx.de

Re: How to remove empty lines

Post by maxdido@gmx.de »

Found it myself in another thread.
solution: ^\r\n
Post Reply