REGEX-Escape for: ^[s][+-]?([0-9]*[.])?[0-9]+$

Your Input:
Result, the escaped string:
\^\[s\]\[\+\-\]\?\(\[0\-9\]\*\[\.\]\)\?\[0\-9\]\+\$


Ads

What must the escaping look like for:
^[s][+-]?([0-9]*[.])?[0-9]+$

The excaped text for use in a regex is:

\^\[s\]\[\+\-\]\?\(\[0\-9\]\*\[\.\]\)\?\[0\-9\]\+\$


Ads