We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Create a regular expression from any string
Sometimes you try to use certain strings to create regular expressions.
The problem is these string might contain characters that have special meaning inside a RegExp. For example:
const myString = '[Hello?](World)!!!'
To escape it for safe use as a regex pattern, lodash provides
const myString = '[Hello?](World)!!!' // "\\[Hello\\?\\]\\(World\\)!!!"