Page 1 of 1

Need to remove a lot of junk

Posted: Sat Dec 11, 2010 1:16 am
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?

Posted: Sat Dec 11, 2010 3:39 am
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

Posted: Sat Dec 11, 2010 2:21 pm
by seank
perfect thank you

Posted: Sat Dec 11, 2010 4:53 pm
by ben_josephs
Search | Replace... (<F8>):
Find what: .*bellmobile.*\n
Replace with: [nothing]

[X] Regular expression

Replace All