There is a pattern
string mask = @"?????;8595??????;4501*;7005*;7701*;800???????;1505???"; And there is an input string
string number = "70050045"; It is necessary to determine whether this string matches the pattern. The pattern and string are taken as an example. Use regex? But how to convert a pattern? Or is there some other way to compare? Thank.