Specific character in specific position
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Specific character in specific position
How do I find rows containing an 'x' in position 53?
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Click on Search/Find
Search for: ^.{52}x
Click on Mark All
Be sure to have check in Regular Expressions and POSIX is on.
Note, would like to let you know that there is now a separate Forum for Regular Expressions. That is where this type of question should be posted in the future.
Search for: ^.{52}x
Click on Mark All
Be sure to have check in Regular Expressions and POSIX is on.
Note, would like to let you know that there is now a separate Forum for Regular Expressions. That is where this type of question should be posted in the future.
Last edited by Bob Hansen on Thu May 04, 2006 10:46 pm, edited 1 time in total.
Hope this was helpful.............good luck,
Bob
Bob
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
another method
Just for information and giving an alternative method:
If you put TP in "Block" mode
go to column 52 on the first row
Select one character (Shift + right arrow)
Select the whole column (Shift + CTRL + End)
Bring up the "Find" dialogue box
Type in "x" and you will notice that is says it search "Selected Text Only"
I tend to select "Book Mark lines" in the Find dialogue which allows later to "Copy Booked Marked Lines" if I am producing an extract file.
I must get a REGEX book, but at the moment as I have used the editor for such a long time, I can get by.
If you put TP in "Block" mode
go to column 52 on the first row
Select one character (Shift + right arrow)
Select the whole column (Shift + CTRL + End)
Bring up the "Find" dialogue box
Type in "x" and you will notice that is says it search "Selected Text Only"
I tend to select "Book Mark lines" in the Find dialogue which allows later to "Copy Booked Marked Lines" if I am producing an extract file.
I must get a REGEX book, but at the moment as I have used the editor for such a long time, I can get by.
Special character in specific position
In the "Search for" box, ^.{52}x will find rows containing an 'x' in position 53:
How do I find rows containing a special character -- like a period or a comma -- in position 53?
How do I find rows containing a special character -- like a period or a comma -- in position 53?
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Special character in specific position
I originally tried
^.{52}.
but it bookmarked EVERY row.
Per your suggestion, I tried
^.{52}\.
and it bookmarked only the rows with a period in position 53.
Thanks.
^.{52}.
but it bookmarked EVERY row.
Per your suggestion, I tried
^.{52}\.
and it bookmarked only the rows with a period in position 53.
Thanks.