EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Irregularities with replacing (.jsee macro)
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Salabim
Posted on: 2/21/2013 9:42 pm
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
Irregularities with replacing (.jsee macro)
Hi,

I encounter a problem when running a .jsee macro not matching where it *should* . I need to run the macro twice in order to have all the words replaced as they should.

Here's the textfile for testing purposes (the macro should replace all "l" chars at the beginning of every line, however it skips some, and only replaces them when the macro is ran a 2nd time)


lerse
ler
lers
lerland



This is the macro-script that should match at *every* line.

document.selection.Replace("(\\r\\n|-|<i>|,| )ler(s|se|land|)( |</i>|,|\\.|!|\\?|(\\r)*\\n)","\\1Ier\\2\\3",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);


Can you please try to reproduce, and see what I mean please ?
Flat Previous Topic | Next Topic


Subject Poster Date
 » Irregularities with replacing (.jsee macro) Salabim 2/21/2013 9:42 pm
     Re: Irregularities with replacing (.jsee macro) Yutaka 2/22/2013 9:39 am
       Re: Irregularities with replacing (.jsee macro) Salabim 2/23/2013 4:56 pm

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