Table of Contents

Method ToRegex

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

ToRegex(string)

Turns a Word wildcard pattern into a .NET regular expression.

public static string ToRegex(string pattern)

Parameters

pattern string

The pattern, at most MaxPatternLength characters.

Returns

string

The regular expression.

Exceptions

ArgumentNullException

pattern is null.

ArgumentException

The pattern is empty, too long, or not one Word accepts (an unclosed set or group, a repeat with nothing before it).