Hi!
I'm trying to store regexes in a database but they're getting escaped by rails.
For example \w*\s\/\s
becomes \\w*\\s\\/\\s
in the database and when retrieved.
I'm inserting trying to use them with mystring.sub(/#{regex_variable}/, ''), but the escaped regex is not matching as desired.
What's the best we to resolve this so the regex works as input?
Thanks!