REGEX-Escape for: SELECT id, name, distance, message, created_at, updated_at FROM satellite WHERE name = $1;

Your Input:
Result, the escaped string:
SELECT id, name, distance, message, created_at, updated_at FROM satellite WHERE name \= \$1;


Ads

What must the escaping look like for:
SELECT id, name, distance, message, created_at, updated_at FROM satellite WHERE name = $1;

The excaped text for use in a regex is:

SELECT id, name, distance, message, created_at, updated_at FROM satellite WHERE name \= \$1;


Ads