Page 1 of 1

remove last XX characters in all line

Posted: Fri Nov 07, 2008 1:23 am
by hv
Hello all,

I was wondering if anybody knew how I would go about removing the last XX characters in all lines.

e.g. (last 10 characters in the following lines)
line 1 3658(&^^*^
line 2 *(^&*%sdf2
line 3 1%*&&^nkhj

would result in:
line 1
line 2
line 3

Posted: Fri Nov 07, 2008 8:43 am
by ben_josephs
Find what: .{10}$
Replace with: [nothing]

[X] Regular expression

Replace All
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax

thank you...

Posted: Fri Nov 07, 2008 5:14 pm
by hv
much abliged... thank you very much. this worked perfectly for my 800,000+ rows file.