So I have a RegExp regex = /asd/
regex = /asd/
I am storing it as a as a key in my key-val store system.
So I say str = String(regex) which retur
str = String(regex)
let rx = RegExp.apply(RegExp, str.match(/\/(.*)\/(.*)/).slice(1));
A modified version of @PegasusEpsilon answer