REGEX-Escape for: /^[\\w\\-\\s]+$/

Your Input:
Result, the escaped string:
\/\^\[\\\\w\\\\\-\\\\s\]\+\$\/

What must the escaping look like for:
/^[\\w\\-\\s]+$/

The excaped text for use in a regex is:
\/\^\[\\\\w\\\\\-\\\\s\]\+\$\/


Ads