How to compare two strings, one of which contains wildcard symbols? Like this:
string string1 = "/api/mymember/get";
# * is any text
string string2 = "/api/*/get";
I'd like a way to make string1 equal string2.
In C#, is the function regex.match able to do that? If string2 is a pattern.
Or I need custom a script to compare it?
Use regex.
You will also need to import the namespace for regex:
Actual regex code requested: