Search at position or in marked text

Ideas for new features

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
Giuseppe Sonanini
Posts: 1
Joined: Wed Mar 20, 2013 10:03 am

Search at position or in marked text

Post by Giuseppe Sonanini »

I have to handle big text files an therefor it would be helpful if I could define a column where the search argument I will find starts or that I can select "o in market text" in the search dialig as I can do it in the replace dialog.
Giuseppe Sonanini, Switzerland
ben_josephs
Posts: 2457
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

To find the string text only if it starts at column 20 (as in this line):

Use "Posix" regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Search | Find... (<F5>):
Find what: ^.{19}text

[X] Regular expression

Replace All
The regular expression ^.{19} matches any 19 characters at the beginning of a line.

Unfortunately, you can't restrict a search to the current selection.
Post Reply