> For the complete documentation index, see [llms.txt](https://docs.gapvelocity.ai/webmap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gapvelocity.ai/webmap/general/frontend/documentation/webforms-angular-components/web-components/kendoui-components/regularexpressionvalidator.md).

# RegularExpressionValidator

Adds support for \[System.Web.UI.WebControls.RegularExpressionValidator] [<mark style="color:orange;">https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.regularexpressionvalidator?view=netframework-4.8</mark>](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.regularexpressionvalidator?view=netframework-4.8)

Allows to validate if a value in an input control to validate matches with the pattern specified in the regular expression validator.

### **Implementation Details:**

**Component Selector:** ‘wm-regular-expression-validator’

**Kendo UI Component:** <mark style="color:orange;">N/A</mark>

## **Class inheritance**

RegularExpressionValidatorComponent extends [<mark style="color:orange;">BaseValidatorComponent</mark>](/webmap/general/frontend/documentation/webforms-angular-components/web-components/base-components/basevalidator-component.md)

## **PME Support**

### **Properties**

| **Property**                | **Get/Set** | **Details**                                                                                                                                      |
| --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| ControlToValidate: string   | Yes         | ID of control to validate                                                                                                                        |
| ValidationExpression:string | Yes         | Pattern used to validate control to validate                                                                                                     |
| ErrorMessage:string         | Yes         | Message showed  in validator if value pattern is not  the same than pattern assigned in ValidationExpression property and text property is empty |
| Text:string                 | Yes         | Message showed  in validator if value pattern is not  the same than pattern assigned in ValidationExpression property.                           |
| Display:ValidatorDisplay    | Yes         | Enum property with options Static,None,Dynamic                                                                                                   |
| ValidationGroup:string      | Yes         | If is established the name of the validationgroup component only will validate controls with the same validationgroup associated                 |
| Hidden:boolean              | Yes         | Establishes if the validator shows or is hides                                                                                                   |

### &#x20;**Methods**

| **Methods**     | **Details**                                                                                    |
| --------------- | ---------------------------------------------------------------------------------------------- |
| validateControl | Verify if value in control to validate match with the assigned pattern returning Boolean value |
| displayMesssage | Shows value of text property or ErrorMessage property in case text property is empty           |

&#x20;
