Page 1 of 1
Search at position or in marked text
Posted: Wed Mar 20, 2013 6:38 pm
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.
Posted: Wed Mar 20, 2013 7:38 pm
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.