I'm trying to read scripts from various .sql files into a string and execute them in SQL server using c#. I want to remove the terms USE, GO etc. I succeeded removing one word at a time but cannot find the pattern to search for two or more words at the same time.
so far,
string pattern = @"\bUSE*\b";
string script = Regex.Replace(script, pattern, "");
How to add other search terms to the pattern? i tried msdn docs and previous questions but cannot find what i need. Any help is greatly appreciated.