
A WordPress plugin and GravityForms addon to enable users to use regex string on text…
This plugin is created to enable WordPress site owners to specify a regex string to be used with Gravity Forms text fields.
Once a regex string is specified, the user can’t submit that form until the user enters a text that comply with the regex string.
Screenshots

General tab of the Regex Textfield field in the form editor.

General tab of the Regex Textfield field with a filled in regex string.

Appearance tab of the Regex Textfield field with a custom validation message.

Form preview with the Regex Textfield field with an incorrect input.

Form preview with the Regex Textfield field where the field is set to be required, but no regex string is defined.
FAQ
How do I use this plugin?
This plugin requires you to have Gravity Forms installed (min version 2.5).
How to uninstall the plugin?
Simply deactivate and delete the plugin.
ChangeLog
1.4
- Tested: Compatible with WordPress 7.1.
- Fixed: The add-on now reports its correct version to Gravity Forms.
- Fixed: The current form entry is now passed to Gravity Forms when rendering the field, instead of always being empty.
1.3
- Tested: With WP 6.8.2 and GF 2.9.18
- Tested: The field has not a default label “Regex Field”
- New: Add support for multip-page Gravity Forms.
1.2
- New: Tested with WP 6.6.2.
- New: Added an example to the field tooltip.
- New: Run the Plugin check to make sure the plugin comply with the WordPress guidelines
1.1
- New: Added support for placeholder to the field.
- Fixed: Corrected typos and did some minor code reformating
1.0