# FarPoint.Win.Spread.RegularExpressionValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_RegularExpressionValidator" data-uid="FarPoint.Win.Spread.RegularExpressionValidator" class="text-break">RegularExpressionValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents a special <a class="xref" href="FarPoint.Win.Spread.BaseDataValidator.html">BaseDataValidator</a> that validates whether the specifed value matches the given regular expression.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="FarPoint.Win.Spread.BaseDataValidator.html">BaseDataValidator</a></div>
    <div class="level2"><span class="xref">RegularExpressionValidator</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.ideserializationcallback">IDeserializationCallback</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.INamedObject.html">INamedObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.html">FarPoint.Win.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_RegularExpressionValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(FpSpread), &quot;RegularExpressionValidator.png&quot;)]
[TypeConverter(typeof(RegularExpressionValidator._a))]
public class RegularExpressionValidator : BaseDataValidator, ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(FpSpread), &quot;RegularExpressionValidator.png&quot;)&gt;
&lt;TypeConverter(GetType(RegularExpressionValidator._a))&gt;
Public Class RegularExpressionValidator
    Inherits BaseDataValidator
    Implements ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <h5 id="FarPoint_Win_Spread_RegularExpressionValidator_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This CellValidator validates whether the validated value's string representation matches a specified regular expression. This is an exact match.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator__ctor" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.-ctor.html#FarPoint_Win_Spread_RegularExpressionValidator__ctor">RegularExpressionValidator()</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default empty constructor.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.-ctor.html#FarPoint_Win_Spread_RegularExpressionValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">RegularExpressionValidator(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of this class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_Expression" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.Expression">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.Expression.html#FarPoint_Win_Spread_RegularExpressionValidator_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a regular expression that is matched by the specified value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_NullIsValid" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.NullIsValid">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.NullIsValid.html#FarPoint_Win_Spread_RegularExpressionValidator_NullIsValid">NullIsValid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the validation is always successful when the specified value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_RegexOptions" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.RegexOptions">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.RegexOptions.html#FarPoint_Win_Spread_RegularExpressionValidator_RegexOptions">RegexOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the regular expression options.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_Clone_GrapeCity_Spreadsheet_Conditional_ConditionalObjects_GrapeCity_Spreadsheet_DataValidator_GrapeCity_Spreadsheet_DataValidation_GrapeCity_Spreadsheet_DataValidationExecutedResult__ConditionalObject_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.Clone(GrapeCity.Spreadsheet.Conditional.ConditionalObjects{GrapeCity.Spreadsheet.DataValidator,GrapeCity.Spreadsheet.DataValidation,GrapeCity.Spreadsheet.DataValidationExecutedResult}.ConditionalObject,GrapeCity.CalcEngine.FormulaEngine,GrapeCity.CalcEngine.FormulaEngine)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.Clone.html#FarPoint_Win_Spread_RegularExpressionValidator_Clone_GrapeCity_Spreadsheet_Conditional_ConditionalObjects_GrapeCity_Spreadsheet_DataValidator_GrapeCity_Spreadsheet_DataValidation_GrapeCity_Spreadsheet_DataValidationExecutedResult__ConditionalObject_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_">Clone(ConditionalObject, FormulaEngine, FormulaEngine)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy of the current <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.html">RegularExpressionValidator</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.Deserialize.html#FarPoint_Win_Spread_RegularExpressionValidator_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.GetObjectData.html#FarPoint_Win_Spread_RegularExpressionValidator_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object data.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.Serialize.html#FarPoint_Win_Spread_RegularExpressionValidator_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_RegularExpressionValidator_Validate_FarPoint_Win_Spread_ValidateActionContext_" data-uid="FarPoint.Win.Spread.RegularExpressionValidator.Validate(FarPoint.Win.Spread.ValidateActionContext)">
          <a class="xref" href="FarPoint.Win.Spread.RegularExpressionValidator.Validate.html#FarPoint_Win_Spread_RegularExpressionValidator_Validate_FarPoint_Win_Spread_ValidateActionContext_">Validate(ValidateActionContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates whether the specifed value matches the given regular expression.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
