Page 1 of 1
Find string
Posted: Tue Aug 22, 2006 4:32 am
by gcotterl
My text-file has 13,000 rows and each row is 1,200 characters long.
How do I find the rows with a search string (such as "068345") occurring anywhere between position 200 and 800?
Posted: Tue Aug 22, 2006 9:49 am
by ben_josephs
Find what: ^.{199,799}068345
[X] Regular expression
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Posted: Tue Aug 22, 2006 1:44 pm
by Boris
If the string to be found has to be
entirely within the two column bounds, then you have to modify the RegExp to adjust for that.
In the example given, the string to be found is 6 chars long, so the new expression would be:
^.{199,
794}068345
794 being 800 - 6, of course

Posted: Tue Aug 22, 2006 3:19 pm
by ben_josephs
Good point.