So the regex for a quoted string has been solved over and over. A good answer seen here: https://stackoverflow.com/a/5696141/692331
$re_dq = '/"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"/s';
Seems to be the standard solution for PHP.
My Issue is that my quotes are escaped by another quote. Example:
="123 4556 789 ""Product B v.24"""
="00 00 F0 FF ""Licence key for blah blah"" hfd.34"
=""
The previous strings should match the following, respectively:
string '123 4556 789 ""Product B v.24""' (length=31)
string '00 00 F0 FF ""Licence key for blah blah"" hfd.34' (length=48)
string '' (length=0)
The examples given are just illustrations of what the string may look like and are not the actual strings I will be matching, which can number in the tens of thousands.
I need a regex pattern that will match a double quoted string which may OR MAY NOT contain sequences of two double quotes.
UPDATE 5/5/14: