Page 1 of 1
Is there a way to search a record by column numbers?
Posted: Tue Jan 12, 2010 9:40 pm
by karipay
Hi.
Just want to know if this is possible in textpad. Searching by column number?
FILE
A2334
B1245
C2134
Search file for column 5 = "4"
A2334
C2134
TIA!
Posted: Tue Jan 12, 2010 10:48 pm
by ben_josephs
^....4
or
^.{4}4
The second of these assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Posted: Wed Jan 13, 2010 3:59 pm
by karipay
This worked! Thanks a lot!
[quote="ben_josephs"][b][color=blue]^....4[/color][/b]
or
[b][color=blue]^.{4}4[/color][/b]
The second of these assumes you are using Posix regular expression syntax:
[quote][u]C[/u]onfigure | [u]P[/u]references | Editor
[[b][color=blue]X[/color][/b]] Use [u]P[/u]OSIX regular expression syntax[/quote][/quote]