EmEditor (text editor) Forum Index
   Regular Expressions
     Exceptions or bugs?
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
LTT
Posted on: 7/9/2011 4:02 am
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
Re: Exceptions or bugs?
Quote:
Yutaka wrote:
2. Can you please create a sample file, and explain what you expect as a result? You might want to zip your sample file, and send it to tech@emurasoft.com, and please identify yourself as a forum member.


For example, the original text:
1-2-3-4-5-


My goal:
1‰
2‰
3‰
4‰
5‰


If I replace "-" with "\x{2030}\n" (which I think is a correct regular expression), the result is:
1‰n2‰n3‰n4‰n5‰n


If I use "\x2030\n", the result is:
1‰2‰3‰4‰5‰


I achieved my goal by using "\x{2030}\\n" or "\x2030\\\n".
But how to understand the excessive backslash(es)?
Flat Previous Topic | Next Topic


Subject Poster Date
   Exceptions or bugs? LTT 7/8/2011 9:41 am
     Re: Exceptions or bugs? Yutaka 7/8/2011 10:23 am
       Re: Exceptions or bugs? LTT 7/8/2011 10:44 am
         Re: Exceptions or bugs? Yutaka 7/8/2011 11:05 am
         » Re: Exceptions or bugs? LTT 7/9/2011 4:02 am
             Re: Exceptions or bugs? Yutaka 7/9/2011 12:15 pm
           Re: Exceptions or bugs? LTT 7/10/2011 9:47 am
             Re: Exceptions or bugs? Yutaka 7/10/2011 10:41 am

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