Search Results for

    Show / Hide Table of Contents

    Class RegexReplaceToken

    Represents the regular expression to be used for matching and a replacement value to be used for string replacements.

    Inheritance
    object
    RegexReplaceToken
    Implements
    IValidator
    IEquatable<RegexReplaceToken>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Processing
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
    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
    [DataMember(EmitDefaultValue = false)]
    public bool CultureInvariant { get; set; }
    Property Value
    Type Description
    bool

    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
    [DataMember(EmitDefaultValue = false)]
    public bool ExplicitCapture { get; set; }
    Property Value
    Type Description
    bool

    IgnoreCase

    Gets or sets the flag indicating case-insensitive matching.

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public bool IgnoreCase { get; set; }
    Property Value
    Type Description
    bool

    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
    [DataMember(EmitDefaultValue = false)]
    public bool Multiline { get; set; }
    Property Value
    Type Description
    bool

    Pattern

    Gets or sets the regular expression pattern to be matched.

    Declaration
    [DataMember]
    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
    [DataMember(EmitDefaultValue = false)]
    public bool RightToLeft { get; set; }
    Property Value
    Type Description
    bool

    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
    [DataMember]
    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
    bool

    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
    bool

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetHashCode()

    Returns hash code for the value of this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code for the value of this instance.

    Overrides
    object.GetHashCode()

    ToString()

    Returns string representation of the object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String representing the object's content.

    Overrides
    object.ToString()

    Validate()

    Evaluates the state of the object.

    Declaration
    public bool Validate()
    Returns
    Type Description
    bool

    True if state is valid; otherwise, false.

    Implements

    IValidator
    IEquatable<T>
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation