REGEX-Escape for: select volume from retail_transactions where id=$1;

Your Input:
Result, the escaped string:
select volume from retail_transactions where id\=\$1;


Ads

What must the escaping look like for:
select volume from retail_transactions where id=$1;

The excaped text for use in a regex is:

select volume from retail_transactions where id\=\$1;


Ads