REGEX-Escape for: INSERT INTO "account" ("created_at","updated_at",...

Your Input:
Result, the escaped string:
INSERT INTO "account" \("created_at","updated_at","deleted_at","username","password","email","phone","balance"\) VALUES \(\$1,\$2,\$3,\$4,\$5,\$6,\$7,\$8\) RETURNING "account"\."id"

What must the escaping look like for:
INSERT INTO "account" ("created_at","updated_at","deleted_at","username","password","email","phone","balance") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) RETURNING "account"."id"

The excaped text for use in a regex is:
INSERT INTO "account" \("created_at","updated_at","deleted_at","username","password","email","phone","balance"\) VALUES \(\$1,\$2,\$3,\$4,\$5,\$6,\$7,\$8\) RETURNING "account"\."id"


Ads