I'd like to pick up a string into a text file. The string that I want to recover begins with ALTER TABLE and ends by GO.
I tried several regular expressions but I can not find the right one. I found that it works but only if GO is on the second line ...Code:ALTER TABLE [T_FA] WITH CHECK ADD FOREIGN KEY ([ID_MD]) REFERENCES [T_MD] ([ID_MD]) ON UPDATE CASCADE ON DELETE CASCADE GO
How do I make my regex search goes on GO after several line breaks?Code:Regex maregex = new Regex (@ "ALTER TABLE (? <test> (.*)( \ S *)) GO");


Reply With Quote

Bookmarks