DataSource.NET
RegexNamespace Class
NamespacesCaplin.DataSource.NamespaceRegexNamespace

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 Regex class. More information on the regular expressions syntax used by the .NET Regex implementation can be found at .NET Framework Regular Expressions

Declaration Syntax
C#Visual BasicVisual C++
public class RegexNamespace : INamespace
Public Class RegexNamespace _
	Implements INamespace
public ref class RegexNamespace : INamespace
Members
All MembersConstructorsMethods



IconMemberDescription
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 AddIncludeRegex(String) method.

RegexNamespace(String)
Initializes a new instance of the RegexNamespace class with an include regex pattern.

AddExcludeRegex(String)
Adds an exclude regex pattern to the namespace.

AddIncludeRegex(String)
Adds an include regex pattern to the namespace.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Match(String)
Tests a subject string to see if it falls within this INamespace.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a String that represents this instance.
(Overrides Object.ToString()()().)
Remarks

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.

Inheritance Hierarchy
Object
RegexNamespace

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.2.6.2123 (6.2.6.2123)