EmEditor (text editor) Forum Index
   Regular Expressions
     "Invalid Regular Expression"
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
smilinger
Posted on: 10/18/2008 6:36 am
Just popping in
Joined: 10/18/2008
From:
Posts: 1
"Invalid Regular Expression"
Hi, I type a RegEx in the search box and it says "Invalid Regular Expression". My Regex is "(?<=<(\w+)>).*(?=<\/\1>)", which should be right. I have test it with some Regex Tester and it works.
I tested more and found emeditor did not support +/*/? in (?<=exp), is that right?
Yutaka
Posted on: 10/18/2008 9:00 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: "Invalid Regular Expression"
Quote:

smilinger wrote:
Hi, I type a RegEx in the search box and it says "Invalid Regular Expression". My Regex is "(?<=<(\w+)>).*(?=<\/\1>)", which should be right. I have test it with some Regex Tester and it works.
I tested more and found emeditor did not support +/*/? in (?<=exp), is that right?


That is true. The pattern in (?<=exp) must be fixed length.

See http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html for details.


----------------
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 日本語 한국어 Русский 简体中文 繁體中文