EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     A text with periods gets replaced with spaces when escape sequence option used
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
ArthurZ
Posted on: 2/20/2013 6:52 pm
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
A text with periods gets replaced with spaces when escape sequence option used
Why if I have the escape sequence set to on in the replace dialog I get text

Quote:
test.test.test.com

replaced with

Quote:
testest1


when my search text is test.test.test.com and the replacement is test\est1 ?

According to the help card only the following are treated as escape sequences:

\a Warning (Bell)
\b Backspace
\f Form feed
\n New line
\t Horizontal tab
\v Vertical tab
\\ Backslash
\oooooo Unicode character in octal notation
\xhhhh Unicode character in hexadecimal notation
Yutaka
Posted on: 2/22/2013 9:45 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: A text with periods gets replaced with spaces when escape sequence option used
Hi ArthurZ,

I am sorry I didn't understand your question.
Can you please try to rewrite with a simple sample, or you can email me at tech@emurasoft.com with samples.

Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

ArthurZ
Posted on: 2/22/2013 10:36 am
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
Re: A text with periods gets replaced with spaces when escape sequence option used
1) Copy-paste the text:
test.test.test.com
into a new text file.
2) Have the search-replace dialog set to use the option "Use Escape Sequence" on.
3) Attempt to replace the text with: test\est1

Expected result: test\est1

The actual result: testest1
Yutaka
Posted on: 2/22/2013 11:06 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: A text with periods gets replaced with spaces when escape sequence option used
I see. So it doesn't have to be "test.test.test.com", right?

\e is not defined, so undefined escape sequences should not be used. Please use "\\e" instead.

Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


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