Search found 4 matches

by benka
Fri Jul 02, 2010 10:34 am
Forum: General
Topic: How to remove lines that start with a string?
Replies: 5
Views: 467

Sorry : it works!

Many thanks for all your help! :D
by benka
Fri Jul 02, 2010 10:32 am
Forum: General
Topic: How to remove lines that start with a string?
Replies: 5
Views: 467

ben_josephs wrote:
Find what: ^STRING1.*\n
Replace with: [nothing]

[X] Regular expression

Replace All
Still doesn't work... :-(

The STRING1 is "Nbre Destinataires Potentiels : "
by benka
Fri Jul 02, 2010 10:11 am
Forum: General
Topic: How to remove lines that start with a string?
Replies: 5
Views: 467

Thank you for the reply.

But it does not work ... I use Textpad version 5.3.1 and I have POSIX enabled in preferences.

When I do a search and replace, only STRING1 disappears ... The rest of the line remains

Ideas?
by benka
Fri Jul 02, 2010 9:44 am
Forum: General
Topic: How to remove lines that start with a string?
Replies: 5
Views: 467

How to remove lines that start with a string?

Hello

I have a text file:

Code: Select all

jkjfklgjdfslgj
jhdfkghdfkjs
zerjzeko
STRING1 gkmlkgmtlr
dfkljgsdlk
fgdkglmdf
gfdsjklm
fgd
STRING1 gdf4s56'"(_çà)à
STRING1 gkmlkgmtlr
dfkljgsdlk
fgdkglmdf
gfdsjklm
fgd
STRING1 ghfhgdf
How to delete all lines beginning with STRING1 ?

Thank you! :D