REGEX-Escape from: ^(0(\.\d+)?|1(\.0+)?)$

Your Input:
Result, the escaped string:
\^\(0\(\\\.\\d\+\)\?\|1\(\\\.0\+\)\?\)\$

What must the escaping look like for:
^(0(\.\d+)?|1(\.0+)?)$

The excaped text for use in a regex is:
\^\(0\(\\\.\\d\+\)\?\|1\(\\\.0\+\)\?\)\$


Ads