Hi, How can we help?

Esc to close

Dealing with Regex (Regular Expressions)

Updated Plugin version 5.9.5 1 min read

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 WooCommerce custom product addons.

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]/

Was this article helpful?

Still need help?

Our support team can help with setup, settings and anything these guides don't cover.