Hi, I have created a program that allows me to search for keywords inside the code of stored procedures, functions, tables etc. in SQL Server generated text files. I am looking for a way to find out where a search term (i.e "ADMIN.TABLE) is being referenced in all the code files. I use LINQ to find references. For example when I search for ADMIN.TABLE, I will list the name of the text files that contains a referenceto the search term "ADMIN.TABLE" somewhere in the text. However, the search is not absolute in that unless you include different variations of the ADMIN.TABLE you will not find all references. So to find all references I need to do something like this: 1) Search for "ADMIN.TABLE" 2) Search for "[ADMIN].TABLE" 3)Search for "ADMIN.[TABLE]" 4) Search for "[ADMIN].[TABLE]"
I am thinking of using a regular expression pattern, but I am not sure how to construct one that will cover the different combinations listed above. Any help would be appreciated.
Regards,
Tor