2 ms·
I submitted this article expecting to learn a few things about my style. In this case, I didn't actually know you could interpolate into regexes like that, so t
by adambard 14y ago
I submitted this article expecting to learn a few things about my style. In this case, I didn't actually know you could interpolate into regexes like that, so thanks!
And thanks for the typo catch, too.
- davesims 14y agoNo problem, in ruby style is always pretty subjective since there's a thousand ways to do just about everything. And, just FYI you do need to escape the backrefs or use single quotes, like: "\\1<span class=\"nurble\">nurble</span>\\2"
- davesims 14y agoI take it back - I had issues with escaping on irb but not in the app itself. Something new to learn...