I'm trying to use the regex global variable with the ruby gsub! method.
What I have in mind is something like this:
MyTextString.gsub!(/regex expression/,$1)
This is how I've approached it but its not working. Is this possible or perhaps my regex isn't working.
$1with the block form ofgsub.