You make a substitution from:
VALUES\(N'[^']*',\s
to
VALUES(
Use N?
(instead of N
) if you optionally have N
before the string.
Question
I haven't used Regular Expressions before and now I find myself needed to make a series of alterations to a file...really quick.
Basically I have the following SQL:
VALUES(N'Some string here', etc...
I need to get rid of the first parameter in the VALUES statement N'Some string here'
How would I do this?
Thanks
Solution
You make a substitution from:
VALUES\(N'[^']*',\s
to
VALUES(
Use N?
(instead of N
) if you optionally have N
before the string.