Need to remove a lot of junk

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
seank
Posts: 2
Joined: Sat Dec 11, 2010 1:10 am

Need to remove a lot of junk

Post by seank »

I have a file that has over 7000 lines of text in it, and i need to remove a lines if they have a certain name in them. Like for example BellMobile

I tired doing an find/replace with *bellmobile* but that didn't work.

does anyone know how I can delete all the lines in this file that contain bellmobile?
jazzastronomer
Posts: 36
Joined: Sat Nov 03, 2007 3:04 am

Post by jazzastronomer »

Suggest you
1)
use [find] in conjunction with mark lines to mark any line that contain bell mobility.
then
2)
delete marked lines.

this approach requires less regex kung-fu <grin>

Search | Find... (<F5>):

Find what: bellmobility

[X] Regular expression

Mark All

Search

then

Edit | Delete | Bookmarked Lines
seank
Posts: 2
Joined: Sat Dec 11, 2010 1:10 am

Post by seank »

perfect thank you
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Search | Replace... (<F8>):
Find what: .*bellmobile.*\n
Replace with: [nothing]

[X] Regular expression

Replace All
Post Reply