Regular expression is NOT working...

General discussions about Advanced Find and Replace
Post Reply
s_bastian

Regular expression is NOT working...

Post by s_bastian »

I must process a text to "real escape" it for use in a mysql database. I must replace "real" returns and new lines with the carachters "\n".
On a text like this
one
two

I replace "\r\n" with "\\n" (escaping the "\n" with an extra "\", but instead of "one\ntwo" all I get is "onentwo".
Any clue?

s_bastian

Post by s_bastian »

Forgot to mention that this happens also if I work wit ANY regular, eg, if on 'one' I want to change the ' character with \' it just stays 'one' instyead of \'one\' .......

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

Hi Stefano,

It's corrected now.

Please download latest beta version of the program:
http://www.abacre.com/download/afrexe.zip

This is only updated EXE file. You need to extract executable file from
zip archive into folder where the program is installed. So you will
replace old executable file by this new one.

Tell me does it work now?

Post Reply