Method ToRegex
ToRegex(string)
Turns an Excel wildcard pattern into a .NET regular expression.
public static string ToRegex(string pattern)
Parameters
patternstringThe pattern, 1 to MaxPatternLength characters.
Returns
- string
The regular expression. It is meant to be matched with Singleline.
Exceptions
- ArgumentNullException
patternis null.- ArgumentException
The pattern is empty or too long.