DataSource.NET
7.1.23.41524-1415d4ff
|
Public Member Functions | |
void | AddExcludeRegex (String regex) |
Adds an exclude regex pattern to the namespace. More... | |
void | AddIncludeRegex (String regex) |
Adds an include regex pattern to the namespace. More... | |
bool | Match (string subjectName) |
Tests a subject string to see if it falls within this INamespace. More... | |
RegexNamespace () | |
Initializes an empty new instance of the RegexNamespace class. This instance will match no subjects unless one or more regex patterns are first added to the instance via the Caplin.DataSource.Namespace.RegexNamespace.AddIncludeRegex method. More... | |
RegexNamespace (String includeRegex) | |
Initializes a new instance of the RegexNamespace class with an include regex pattern. More... | |
override string | ToString () |
Returns a System.String that represents this instance. More... | |
The regex namespace matches a subject based on one or more regex patterns.
Regex is an abbreviation for regular expression. Regular expression libraries provide rich string matching capabilities based upon string patterns ("regular expressions"). Different regular expression libraries vary in their syntax and functionality. This class uses the library provided by the .NET System.Text.RegularExpressions.Regex class. More information on the regular expressions syntax used by the .NET Regex implementation can be found at .NET Framework Regular Expressions
RegexNamespace can contain include regex patterns and exclude patterns. A subject matches the namespace if it matches at least one of the include regex patterns and does not match any of the exclude patterns.
|
inline |
Initializes an empty new instance of the RegexNamespace class. This instance will match no subjects unless one or more regex patterns are first added to the instance via the Caplin.DataSource.Namespace.RegexNamespace.AddIncludeRegex method.
|
inline |
Initializes a new instance of the RegexNamespace class with an include regex pattern.
includeRegex | A regex defining an include pattern. |
|
inline |
Adds an exclude regex pattern to the namespace.
regex | A regex defining an exclude pattern. |
|
inline |
Adds an include regex pattern to the namespace.
regex | A regex defining an include pattern. |
|
inline |
Tests a subject string to see if it falls within this INamespace.
subjectName | The subject to be tested for matching |
Implements Caplin.DataSource.Namespace.INamespace.
|
inline |
Returns a System.String that represents this instance.