EmEditor (text editor) Forum Index Regular Expressions
Back reference in scripts | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| QiaoJiao | Posted on: 10/28/2007 8:20 am |
Not too shy to talk ![]() ![]() Joined: 10/25/2007 From: Posts: 31 |
Back reference in scripts Hi everyone!
There is a text "aaaaaxaaaa" If you use "search and repalce", you can enter "(x)" in the find box and "<z>\1<z>" in the replace box. It returns "aaaaa<z>x<z>aaaa". But when i use script: document.selection.Replace("(x)", "<z>\1<z>", eeFindReplaceRegExp); it returns "aaaaa<z><z>aaaa". It spoils characters. How to use back reference in scripts? Thanks in advance. |
| Flint | Posted on: 10/28/2007 9:22 am |
Home away from home ![]() ![]() Joined: 10/9/2006 From: Moscow Posts: 162 |
Re: Back reference in scripts
|
| QiaoJiao | Posted on: 10/28/2007 10:32 am |
Not too shy to talk ![]() ![]() Joined: 10/25/2007 From: Posts: 31 |
Re: Back reference in scripts That's it!
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




