C# Class CSharpUtils.Wildcard

Represents a wildcard running on the System.Text.RegularExpressions engine.
Inheritance: System.Text.RegularExpressions.Regex
Mostrar archivo Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
Wildcard ( string pattern ) : System

Initializes a wildcard with the given search pattern.

Wildcard ( string pattern, RegexOptions options ) : System

Initializes a wildcard with the given search pattern and options.

WildcardToRegex ( string pattern ) : string

Converts a wildcard to a regex.

Method Details

Wildcard() public method

Initializes a wildcard with the given search pattern.
public Wildcard ( string pattern ) : System
pattern string The wildcard pattern to match.
return System

Wildcard() public method

Initializes a wildcard with the given search pattern and options.
public Wildcard ( string pattern, RegexOptions options ) : System
pattern string The wildcard pattern to match.
options RegexOptions A combination of one or more /// .
return System

WildcardToRegex() public static method

Converts a wildcard to a regex.
public static WildcardToRegex ( string pattern ) : string
pattern string The wildcard pattern to convert.
return string