Dealing with Regex (Regular Expressions)

Dealing with Regex (Regular Expressions)

WCPA input fields- Text and Textarea- are well-defined for matching the input values with Regular Expressions. But there is no matching for the string, this feature will match the input character-wise. Let us have a look at how we are dealing with regular expressions in WCPA.

Where to set the Regular expressions?

In the Advanced edit options of the respective fields have the option to set the regular expressions.

How to set Regular expressions? Some examples

  1. To match alphabets only
    /[a-z]/
  2. To match numbers only
    /[0-9]/
  3. To match alphabets and numbers
    /[a-z0-9]/