Page 1 of 1

Find specific char in specific column

Posted: Tue Nov 29, 2011 11:35 pm
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 ?

Posted: Wed Nov 30, 2011 12:51 am
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.