Hi,

In message "How to Convert Regex Back to String in Exact Match?"
    on 02/05/16, William Djaja Tjokroaminata <billtj / z.glue.umd.edu> writes:

|Basically, I need the inverse of the method escape.  I can remove '\A'
|and '\z' without any problem, but I don't know how to deal with all the
|replacements that have been done by the method escape.  Thanks.

I think

  s.gsub(/\\(.)/, '\1')

does the trick.

							matz.