Replace a line of text (delete the line)

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
PSinc
Posts: 9
Joined: Tue Apr 03, 2007 3:15 pm

Replace a line of text (delete the line)

Post by PSinc »

I am wondering if it is possible to do a replace expression where it will simply delete the line. I can do this and then there is a blank line.
I want the line to be removed and the line below it moved up.

Is this possible?

Regards,
Pat
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: ^.*whatever you're looking for.*\n
Replace with: [nothing]

[X] Regular expression
Post Reply