Escape regular expression

Escape regular expression

Input (String)
Output (String)

The function of this online utility is to escape regular expression.

For example,

. * ? + - / \ ^ $ | ( ) [ ] { } < > = ! :
will becomes:
s = s.replace(/\. \* \? \+ \- \/ \\ \^ \$ \| \( \) \[ \] \{ \} \< \> \= \! \:/g, "XXX");
.

Another example,

https://mtbink.com
will becomes:
s = s.replace(/https\:\/\/mtbink\.com/g, "XXX");
.