(bug) search error: tagged expr. and '\n' in search text
Posted: Wed Mar 07, 2012 2:30 am
If I compose a multi-line search with a "tagged expression", and a reference to the "tagged expression" within the search text (on a different line), the search fails with an error: "Invalid regular expression"
A simple example...
Document text:
Search text:
And:
This should find:
But, when I click "Find Next", I get an error alert:
"Invalid regular expression"
If the reference to the "tagged expression" is on the same line as the "tagged expression", then it works fine ...
Search text:
Successfully finds:
I have not found this issue in the general forum, or in the "Known Problems" section.
Kevin
A simple example...
Document text:
Code: Select all
..Some text here...
abc
abcdef
ghighi
jkl
more text here...Code: Select all
Find what: ^(.+)\n\1(.+)
[x] Regular expressionCode: Select all
[x] POSIX regular expression syntaxCode: Select all
"abc
abcdef""Invalid regular expression"
If the reference to the "tagged expression" is on the same line as the "tagged expression", then it works fine ...
Search text:
Code: Select all
Find what: ^(.+)\1\n(.+)
[x] Regular expressionCode: Select all
ghighi
jklKevin