hi ,
I have a string with "\". how can i gsub the string?
i tried
"\".gsub('\','')
but it is giving error.
thanks in advance JK
hi ,
I have a string with "\". how can i gsub the string?
i tried
"\".gsub('\','')
but it is giving error.
thanks in advance JK
hi ,
I have a string with "\". how can i gsub the string?
i tried
"\".gsub('\','')
but it is giving error.
Neither of those string literals because the \ escapes the close quote mark. You need to escape literal backslashes.
Fred
Frederick Cheung wrote: