How to Escape
Escaping gsub’s back-ref enabled replacement strings can be hard sometimes.
You have mastered double-quoted string escapes when you know which byte "\C-\M-A" refers to.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Escaping gsub’s back-ref enabled replacement strings can be hard sometimes.
You have mastered double-quoted string escapes when you know which byte "\C-\M-A" refers to.
Post a comment