EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     RegEx-Bug?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
owilsky
Posted on: 12/11/2008 2:21 am
Just can't stay away
Joined: 2/12/2008
From:
Posts: 76
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:
(?<!\*\*) *TEST

There are three parts marked in green, but the last line is never selected when pressing "find down" multiple times.
Yutaka
Posted on: 12/11/2008 8:41 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: RegEx-Bug?
Quote:

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.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

owilsky
Posted on: 12/11/2008 9:45 am
Just can't stay away
Joined: 2/12/2008
From:
Posts: 76
Re: RegEx-Bug?
(?<!\*\*) 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.
Yutaka
Posted on: 12/12/2008 9:20 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: RegEx-Bug?
Quote:

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 Emura
Developer of EmEditor
http://www.emeditor.com/

Yutaka
Posted on: 12/30/2008 11:09 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: RegEx-Bug?
Quote:

Yutaka wrote:
Quote:

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!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文