Ok, so I would like to do something like this:
string.gsub(regexp, output(’\0’ ,’\1’, ‘\2’)
Output returns a string.
I tested it in irb and it worked ok. Now when it’s in my application,
the ‘\1’ and others don’t resolve as backreferences to the matches as
they should. How can I fix this? Or go around it?