REGEX-Escape for: SELECT glbl_lylt_prod_id FROM glbl_lylt_prod.glbl_lylt_prod WHERE glbl_lylt_featr_tmplt_id = $1

Your Input:
Result, the escaped string:
SELECT glbl_lylt_prod_id FROM glbl_lylt_prod\.glbl_lylt_prod WHERE glbl_lylt_featr_tmplt_id \= \$1

Ads

What must the escaping look like for:
SELECT glbl_lylt_prod_id FROM glbl_lylt_prod.glbl_lylt_prod WHERE glbl_lylt_featr_tmplt_id = $1

The excaped text for use in a regex is:

SELECT glbl_lylt_prod_id FROM glbl_lylt_prod\.glbl_lylt_prod WHERE glbl_lylt_featr_tmplt_id \= \$1


Ads