General questions about using TextPad
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
gcotterl
- Posts: 248
- Joined: Wed Mar 10, 2004 8:43 pm
- Location: Riverside California USA
Post
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?
-
ben_josephs
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Post
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
-
Boris
- Posts: 16
- Joined: Mon Apr 24, 2006 1:46 pm
- Location: UK
Post
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
![Wink :wink:](./images/smilies/icon_wink.gif)