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 » Mon Jan 31, 2005 5:32 pm

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 » Mon Jan 31, 2005 5:32 pm

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: 1201
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Mon Jan 31, 2005 5:32 pm

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

Who is online

Users browsing this forum: No registered users and 3 guests