Page 1 of 1

How to make the lines in a doc a certain length

Posted: Mon Apr 13, 2009 5:18 pm
by JoeCelli
I want to chop every line in a document opened up with TextPad, for example the current line length is 700 I only need the first 300 columns. I have been clicking on the 300 space and then clicking end to highlite the rest of the un-needed data - This works fine, however I need to manually do this for every line.. I love TextPad and would like to do this using it rather than bringing the data into Excel.

Posted: Mon Apr 13, 2009 5:37 pm
by ben_josephs
Find what: ^(.{300}).*
Replace with: \1

[X] Regular expression

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

[X] Use POSIX regular expression syntax