Context: in a big text file I am searching for tags (words enclosed by % %), using regular expression
Code: Select all
%\< and \>%Thanks,
Kiran
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Code: Select all
%\< and \>%If your tags are alphabetic you can useConfigure | Preferences | Editor
[X] Use POSIX regular expression syntax
You can trim text before and after the tags with something like (depending on which regex you used to match the tags) this:Find what: (%[a-z]+%[^%]*)%
Replace with: \1\n%
Replace All -- do this repeatedly until it beeps
Find what: .*(%[a-z]+%).*
Replace with: \1
Replace All