O
O
Ord EO2020-06-13 18:20:55
ruby
Ord EO, 2020-06-13 18:20:55

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

1 answer(s)
0
0xD34F, 2020-06-13
@OrdeO

str.gsub!(/(?=')/, '\\')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question