I’m after a simple solution to quote text in a string with quotes.
For example:
DATEDIFF(Minutes, Lead.WhenCreated, @Today)
need to be updated to
DATEDIFF(Minutes, Lead.WhenCreated, '@Today')
If the source string is already has quotes for the token then no change should be made. There may be multiple tokens in the string and I won’t know what the token value will be – only to say that it will start with the @ character.
My environment is Visual Studio C# 2008.
Hope some can help.
Thanks.
Pattern:
Replacement: