I need to perform Wildcard (*, ?, etc.) search on a string. This is what I have done:
*
?
string input = \"Message\"; string pattern =
You must escape special Regex symbols in input wildcard pattern (for example pattern *.txt will equivalent to ^.*\.txt$) So slashes, braces and many special symbols must be replaced with @"\" + s, where s - special Regex symbol.
*.txt
^.*\.txt$
@"\" + s
s