Method ToRegex
ToRegex(string)
Turns a Word wildcard pattern into a .NET regular expression.
public static string ToRegex(string pattern)
Parameters
patternstringThe pattern, at most MaxPatternLength characters.
Returns
- string
The regular expression.
Exceptions
- ArgumentNullException
patternis null.- ArgumentException
The pattern is empty, too long, or not one Word accepts (an unclosed set or group, a repeat with nothing before it).