Page 1 of 1

Having trouble deleting blank lines

Posted: Thu Nov 17, 2011 9:37 pm
by dan2004
Hello, I am new here

I have tried everything to delete blank lines. It worked once but then I could not get it to work again. :!: I've used ^\n and also ^ *\n. I've gone into preferences and seleceted editor and tried checking and unchecking "Use POSIX regular expression syntax" and neither has worked. I am working with an xml file. I've also converted it to a text file.

It's been a while since I used Regular Expressions, so I sure would appreciate anyone's help.

Thanks!!

Posted: Thu Nov 17, 2011 10:38 pm
by ben_josephs
The style of regex syntax is not significant in this case.

Presumably you've selected Regular expression.

Might there be tabs on these lines? If so, try
^[ \t]*\n
(There's a space in front of the \t).

Posted: Thu Nov 17, 2011 11:15 pm
by dan2004
Thanks Ben! That worked great. Really appreciate your quick response.

Thanks!
Dan