EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     About regexp replace.
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
wgf4242
Posted on: 8/7/2010 7:04 pm
Just popping in
Joined: 12/18/2009
From:
Posts: 3
About regexp replace.
selection
http://1
http://2


macro
str = document.selection.Text;
str = str.replace(/^/gm,"123");
alert(str);


But the result is

123http://1
123
123http://2


I think the correct result is

123http://1
123http://2
Threaded | Oldest First Previous Topic | Next Topic | Top


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