I have tried to find a method in c# to return a string of a wildcard match, however I can only find information on how to return if it contains the wildcard match, not the string the wildcard match represents.
For example,
var myString = "abcde werrty qweert";
var newStr = MyMatchFunction("a*e", myString);
//myString = "abcde"
How would I create MyMatchFunction
? I have searched around on stackoverflow, but everything that has to do with c# and wildcard is just returning boolean values on if the string contains the wildcard string, and not the string it represents.