How to make the lines in a doc a certain length

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
JoeCelli
Posts: 1
Joined: Mon Apr 13, 2009 5:12 pm

How to make the lines in a doc a certain length

Post 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.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
Post Reply