How can I convert a string representation of a regex into a RegExp object in JavaScript

welcome to shbcf.ru