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

Was it helpful?

Solution

You make a substitution from:

VALUES\(N'[^']*',\s

to

VALUES(

Use N? (instead of N) if you optionally have N before the string.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top