i have a similar problem like this: .NET Regex for SQL Server string... but not Unicode string?
The RegEx (?:N'(?:''|[^'])*'[^']*)*(?<!N)'(?<value>(?:''|[^'])*)'
doesn't match this string correctly:
Insert into SomeTable (someColumns) values ('someValue', N'someValue', 'someValue')
it recognizes "N'someValue', 'someValue'"
as a Match
I cant figure out to correct the RegEx to match all string literals but not the literals with the N-Prefix.
Like mentioned in the Link above the RegEx have to ignore escaped quotes in the space of the string like 'some '' escaped'