EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Lookbehind search in a macro is not allowed?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
LTT
Posted on: 8/3/2012 11:55 pm
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
Lookbehind search in a macro is not allowed?
Lookbehind search in a macro is not allowed?

When trying a lookbehind search in a macro, I was prompted with "Syntax error in regular expression".

e.g. this macro:
http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=180
emeditor_perfecta_en.jsee
-- Using regex to extract string

I also tried a VBEE macro, same result.
Stefan
Posted on: 8/4/2012 3:28 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 257
Re: Lookbehind search in a macro is not allowed?


Isn't that normal?


Just google a bit:

JavaScript and VBScript doesn't supported Lookbehind at all.
Lookahead is fully supported.


You can use Python or Perl if you want to use Lookbehind.

EmEditor Help - EmEditor Macro Reference - Directives
#language directive

(though that languages are not installed on windowsTM as default)


.
Threaded | Newest First Previous Topic | Next Topic | Top


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