Categories
How to add escaping in a string?
There is a line, how to add escaping before single quotes inside it?
Answer the question
In order to leave comments, you need to log in
str.gsub!(/(?=')/, '\\')
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question