C# Class Gammtek.Conduit.Text.StringMatching.RegexMatcher

Implements string matching algorithm which tries to match regular expression pattern with input strings.
Inheritance: IStringMatcher
Show file Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
IsMatch ( string value ) : bool

Tests whether valeu can be matched with Pattern.

RegexMatcher ( ) : System

Default constructor.

RegexMatcher ( string pattern ) : System

Constructor which initializes regular expression pattern against which input strings are matched.

Private Methods

Method Description
TestPattern ( string pattern, bool throwException ) : bool

Tests whether pattern is a valid regular expression pattern.

Method Details

IsMatch() public method

Tests whether valeu can be matched with Pattern.
is null or empty.
public IsMatch ( string value ) : bool
value string /// String which is tested using the regular expression pattern /// stored in the property. ///
return bool

RegexMatcher() public method

Default constructor.
public RegexMatcher ( ) : System
return System

RegexMatcher() public method

Constructor which initializes regular expression pattern against which input strings are matched.
is null. is not a valid regular expression pattern.
public RegexMatcher ( string pattern ) : System
pattern string Regular expression pattern used to match input strings.
return System