Guest User

Untitled

a guest
Feb 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1.  
  2. str = "'test'\\''me'"
  3. p str.gsub(/\\(')|'([^']*)'/, '\\1\\2')
  4. # >> "test'me"
Add Comment
Please, Sign In to add comment