I'm trying to understand the following RegEx from Stroustrups C++ 4th Ed. Page 178.
"('(?:[^\\\\']|\\\\.)*'|\"(?:[^\\\\\"]|\\\\.)*\")|"
I believe it's not a raw string literal, so backslash should be in front of special characters. I've tried inputting this into www.regex101.com however am unable to find what it matches. I think perhaps I'm not isolating the extra back slashes from the string.
Does someone with more experience here have an example of what this matches and what the raw expression should be?
UPDATE: Because this is not a RAW string, I remove the extra slashes and come up with this string:
"('(?:[^\\']|\\.)*'|"(?:[^\\"]|\\.)*")|"
Unfortunately, I still can't figure out what it matches.
Thanks