views:

39

answers:

0
string.replace(/([\t])/g,"\\$1")

is working fine where

string.replace(/([\n])/g,"\\$1")

is not working!!!

any idea please???

N.B. string.replace(/\n/g,"\\n") is also working fine