RegEx-Bug?
Hi,
tested with 8.01:
Open a new document and paste these three lines:
TEST!!!
** TEST !!!
TEST!!!
Now goto start of the document and open find dialog with this regex:
(?
There are three parts marked in green, but the last line is never selected when pressing "find down" multiple times.
tested with 8.01:
Open a new document and paste these three lines:
TEST!!!
** TEST !!!
TEST!!!
Now goto start of the document and open find dialog with this regex:
(?
There are three parts marked in green, but the last line is never selected when pressing "find down" multiple times.
owilsky wrote:
Hi,
tested with 8.01:
Open a new document and paste these three lines:
TEST!!!
** TEST !!!
TEST!!!
Now goto start of the document and open find dialog with this regex:
(?<!**) *TEST
There are three parts marked in green, but the last line is never selected when pressing "find down" multiple times.
I reproduced your issue, but this expression is confusing. Can you explain what you are really searching for? Is it possible to show me a simpler example? Thank you.
(?<!**) is negative lookbehind.
I am looking for the word "TEST", but not if there is ** in front of it. Between ** and TEST may be spaces.
This is for our programming language where ** marks a comment.
So I am looking for TEST which is not commented out.
I am looking for the word "TEST", but not if there is ** in front of it. Between ** and TEST may be spaces.
This is for our programming language where ** marks a comment.
So I am looking for TEST which is not commented out.
owilsky wrote:
(?<!**) is negative lookbehind.
I am looking for the word "TEST", but not if there is ** in front of it. Between ** and TEST may be spaces.
This is for our programming language where ** marks a comment.
So I am looking for TEST which is not commented out.
I will address this issue. Thanks!
Yutaka wrote:
owilsky wrote:
(?<!**) is negative lookbehind.
I am looking for the word "TEST", but not if there is ** in front of it. Between ** and TEST may be spaces.
This is for our programming language where ** marks a comment.
So I am looking for TEST which is not commented out.
I will address this issue. Thanks!
v8.02 beta 1 fixes this bug. Please try! Thanks!
5 posts in this topic