REGEX-Escape for: SELECT * FROM students WHERE (id = $1)

Your Input:
Result, the escaped string:
SELECT \* FROM students WHERE \(id \= \$1\)

Ads

What must the escaping look like for:
SELECT * FROM students WHERE (id = $1)

The excaped text for use in a regex is:

SELECT \* FROM students WHERE \(id \= \$1\)


Ads