This is a continuation of my previous question .NET regex engine returns no matches but I am expecting 8.
My query is handling everything perfectly and I have my capture
An expression like this would match such quotes:
(?:'[^']*')+
If you want to match foo
when it's not inside such quotes, you could use something like:
foo(?=[^']*(?:'[^']*'[^']*)+\z)
one match per line with the unquoted text and numbers as capture groups
Something like this:
(?xm)^
\(
(?:
(?:
(?<quote> (?:'[^']*')+ )
| (?<num> -?\d+(?:\.\d+)? )
| (?<x> X'[0-9a-f]*' )
)
(?:\s*,\s*)?
)+
\)
[;,]
\r?$