ruby - Remove backslashes and quotes -
i trying remove double quotes , backslashes.
my code like
> "\"bu\"".gsub /"/, '' => "bu"
i want
bu
please help..
try this:
a = "\"bu\"" print a.gsub('"','') #=> bu
ruby regex
No comments:
Post a Comment