REGEX-Escape for: ^(\+420)?[0-9]{9}$

Your Input:
Result, the escaped string:
\^\(\\\+420\)\?\[0\-9\]\{9\}\$


Ads

What must the escaping look like for:
^(\+420)?[0-9]{9}$

The excaped text for use in a regex is:

\^\(\\\+420\)\?\[0\-9\]\{9\}\$


Ads