Wildcard Conversion to Regular Expressions
-
In my application, i have to perform wildcard search as provided by Visual Studio .NET Find\Replace module. Visual Studio provides 5 wildcard operators (*,#,?, [! ], []). I have to replace the wildcard with regular expressions. I am facing problem in 2 things. 1.to make a pattern for * operator which with input string say "Test string is to Test for testing purposes by tester" generates output like - Test string is to Test for testing purposes by tester - Test for testing purposes by tester - testing purposes by tester - tester 2. these operators can be used in combination, so what do u think my basic regular expression will work in combinations? Anybody worked for wild card search? or know about some stuff to use for such conversion? Aisha Ikram