REGEX-Escape for: SELECT * FROM users where id = $1

Your Input:
Result, the escaped string:
SELECT \* FROM users where id \= \$1

Ads

What must the escaping look like for:
SELECT * FROM users where id = $1

The excaped text for use in a regex is:

SELECT \* FROM users where id \= \$1


Ads