awk match regex warning

I am trying to run this awk code on a macOS:

first_argument_open_quote  = match(payload, /['\"]/);

and I am getting the following message:

warning: regexp escape sequence `\"' is not a known regexp operator

I need to match a single quote or a double quote.

Read more here:

Content Attribution

This content was originally published by Nicholas Antimisiaris at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: