Class RegexReplaceToken
Represents the regular expression to be used for matching and a replacement value to be used for string replacements.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Processing
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RegexReplaceToken : IValidator, IEquatable<RegexReplaceToken>
Constructors
RegexReplaceToken()
Declaration
public RegexReplaceToken()
Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "REGEX"
Field Value
Type | Description |
---|---|
String |
Properties
CultureInvariant
Gets or sets the flag indicating that cultural differences in language are ignored.
Declaration
public bool CultureInvariant { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
ExplicitCapture
Gets or sets the flag indicating that the only valid captures are explicitly named or numbered groups of the form (?<name>…). This allows unnamed parentheses to act as noncapturing groups without the syntactic clumsiness of the expression (?:...).
Declaration
public bool ExplicitCapture { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IgnoreCase
Gets or sets the flag indicating case-insensitive matching.
Declaration
public bool IgnoreCase { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Multiline
Gets or sets the flag indicating multiline mode. Changes the meaning of ^ and $ so they match at the beginning and end, respectively, of any line, and not just the beginning and end of the entire string. Leaving this property to False changes the meaning of the dot (.) so it matches every character (instead of every character except \n).
Declaration
public bool Multiline { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Pattern
Gets or sets the regular expression pattern to be matched.
Declaration
public string Pattern { get; set; }
Property Value
Type | Description |
---|---|
String |
RightToLeft
Gets or sets the flag indicating that the search will be from right to left instead of from left to right.
Declaration
public bool RightToLeft { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Value
Gets or sets the value to replace the matched value. Value may contain a specially formatted context property name which value must be used as the actual replacement value.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Equals(RegexReplaceToken)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(RegexReplaceToken other)
Parameters
Type | Name | Description |
---|---|---|
RegexReplaceToken | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True if the specified object is equal to the current object; otherwise, false. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Returns hash code for the value of this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code for the value of this instance. |
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representing the object's content. |
Overrides
Validate()
Evaluates the state of the object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |