Monday, 30 September 2013

What is the opposite of Regexp.escape?

What is the opposite of Regexp.escape?

What is the opposite of Regexp.escape ?
> Regexp.escape('A & B')
=> "A\\ &\\ B"
> # do something --
=> "A & B"
How can I get the original value?

No comments:

Post a Comment