Having trouble deleting blank lines

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
dan2004
Posts: 2
Joined: Thu Nov 17, 2011 9:30 pm

Having trouble deleting blank lines

Post 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!!
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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).
dan2004
Posts: 2
Joined: Thu Nov 17, 2011 9:30 pm

Post by dan2004 »

Thanks Ben! That worked great. Really appreciate your quick response.

Thanks!
Dan
Post Reply