D
Daniel Bretoi
Hi,
I have a bit of a problem, I can't seem to substitute an apostrphe
successfully
a = "'"
a.gsub!(/'/,'\\\'')
puts a
gives me nothing.
two backslash gives me syntax error.
one backslash gives me just the apostrophy.
How do I do this?
db
I have a bit of a problem, I can't seem to substitute an apostrphe
successfully
a = "'"
a.gsub!(/'/,'\\\'')
puts a
gives me nothing.
two backslash gives me syntax error.
one backslash gives me just the apostrophy.
How do I do this?
db