Find specific char in specific column

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
djgogga
Posts: 1
Joined: Tue Nov 29, 2011 11:26 pm

Find specific char in specific column

Post by djgogga »

Sounds simple. Just need to find, for example, all lines in the file where position 35 = 3. Or further, to find all lines where position 35 = 3 and position 518-523 = blanks.
Have searched high and low. No joy. Any ideas ?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

(This isn't the right forum for questions, as this post explains.)

Click Configure > Preferences > Editor and enable POSIX regular expression syntax.

To find lines where position 35 = 3, search for the following string:

Find what: ^.{34}3

To find lines where position 35 = 3 and position 518-523 = blanks, search for the following string:

Find what: ^.{34}3.{482}_{6} (replace the underscore with a space)

Ensure you select the Regular expression check box in both cases.
Post Reply