Page 1 of 1

Remove blank spaces

Posted: Sun Apr 07, 2013 8:08 pm
by philrob
I have lists of text as below

{
VisGroups=(36)
MeshFile=spot26.gmt CollTarget=False HATTarget=False
}
HOW DO I REMOVE THESE SPACES
Instance=spot27
{
VisGroups=(36)
MeshFile=spot27.gmt CollTarget=False HATTarget=False
}
HOW DO I REMOVE THESE SPACES AND CLOSE UP THE TEXT
Instance=spot28
{
VisGroups=(36)
MeshFile=spot28.gmt CollTarget=False HATTarget=False
}
HOW DO I REMOVE THESE SPACES
Instance=spot29
{
VisGroups=(36)
MeshFile=spot29.gmt CollTarget=False HATTarget=False
}
Instance=spot30
{
VisGroups=(36)
MeshFile=spot30.gmt CollTarget=False HATTarget=False
}
how could i remove the spaces between the lines and close up the text above and below?
regards
phil

Re: Remove blank spaces

Posted: Mon Apr 08, 2013 10:03 am
by DigitalVolcano
To remove blank lines:

-Regular Expression Tab,
-Multi line anchors option enabled

Find: ^\r\n
Replace: (nothing)

That should do it.

Test in the regex tester first if not sure.

Re: Remove blank spaces

Posted: Tue Apr 09, 2013 4:29 pm
by philrob
DV

many thanks that worked perfectly

regards
phil