Regex Validation for Gravity Forms
Adds custom regex validation with Unicode support and presets to Gravity Forms fields.
Use with caution
Regex Validation for Gravity Fo… works, but test it on a staging site before relying on it in 2026. It runs on 10+ sites and was last updated 4 months ago, and scores 51/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- Needs PHP 8.3 or newer
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Regex Validation for Gravit… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| gravity forms | >100 |
| pattern | >100 |
| regex | #24 |
| unicode | #26 |
| validation | >100 |
Version adoption
Share of active sites per release.
About Regex Validation for Gravity Forms
From the official readme · v1.1.0Description
Regex Validation for Gravity Forms adds a powerful regex validation option to your Gravity Forms fields. Define custom regular expression patterns or choose from built-in presets to validate user input — both server-side and client-side.
Features
- Custom regex patterns — Add any regular expression to validate field input
- Unicode support — Full Unicode character class support (
\p{L},\p{N}) for international names and text - Built-in presets — Quick-select common patterns for names, emails, phone numbers, and more
- Server-side validation — Secure PHP validation that can’t be bypassed
- Client-side validation — Instant feedback on input change using JavaScript
- Compound field support — Works with Name fields (validates each sub-input individually)
- Custom error messages — Define user-friendly validation messages per field
- Extensible — Add your own presets and field types via filters
- Accessible — Error messages use
role="alert"for screen readers
Supported Field Types
- Text
- Name (with individual sub-input validation)
- Phone
- Website
- Textarea
Built-in Presets
- Name — Unicode letters, spaces, hyphens, apostrophes
- Email — RFC 5322 compliant
- US Phone Number — Common US formats
- International Phone Number — E.164 format
- Alphanumeric — Unicode letters and numbers only
- No Special Characters — Unicode letters, numbers, and spaces only
Installation
From WordPress Admin
- Upload the
regex-validation-for-gravity-formsfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
Via Composer
composer require zirkeldesign/regex-validation-for-gravity-forms
Requirements
- WordPress 6.0 or later
- PHP 8.2 or later
- Gravity Forms 2.5 or later
Frequently asked questions
How do I add a regex pattern to a field?
Edit your form in Gravity Forms, select a supported field, and look for the “Regex Validation” section under the field settings. You can either select a preset pattern or enter your own custom regex.
Does it support Unicode characters?
Yes! All patterns use the /u flag for PHP and the u flag for JavaScript regex, enabling full Unicode property support like \p{L} for any letter in any language.
Can I add my own presets?
Yes, use the gf_regex_validation_presets filter: add_filter('gf_regex_validation_presets', function (array $presets): array { $presets['zip_code'] = [ 'label' => 'US Zip Code', 'pattern' => '/^\d{5}(-\d{4})?$/', 'message' => 'Please enter a valid US zip code.', ]; return $presets; });
Can I add support for additional field types?
Yes, use the gf_regex_validation_field_types filter: add_filter('gf_regex_validation_field_types', function (array $types): array { $types[] = 'number'; return $types; });
Is client-side validation secure?
Client-side validation provides instant user feedback but should never be relied upon for security. This plugin always performs server-side validation as well, which cannot be bypassed.
Changelog
1.1.0
- Added: Advanced Mode for Name and Address fields — set a different validation rule for each input (e.g. validate ZIP codes differently than city names)
- Added: Support for Address fields, with presets for US, German, Canadian, and International addresses
- Added: Smart preset suggestions based on the field type you’re editing
- Added: More built-in presets for ZIP codes, postal codes, state abbreviations and other common patterns
- Fixed: Name fields no longer apply the same rule to every input (Prefix, First Name, Last Name, etc.)
- Fixed: Hidden inputs in Name and Address fields are no longer validated
- Improved: Field editor styling now matches the Gravity Forms design, and admin scripts load faster
1.0.4
- Fixed: Prevented a form editor JavaScript error by loading plugin admin scripts at the correct time
1.0.2
- Fixed: Admin field settings not appearing in Gravity Forms editor
- Improved: Code quality and WordPress coding standards compliance
- Enhanced: Development tooling for better maintainability
1.0.1
- Fixed: WordPress Plugin Check compliance issues
- Improved: Security and code standards
1.0.0
- Initial release
- Server-side and client-side regex validation
- Built-in presets for common patterns
- Unicode support with
\p{L}and\p{N}character classes - Name field compound input support
- Extensible via
gf_regex_validation_presetsandgf_regex_validation_field_typesfilters
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Regex Validation for Gravity… alternatives
All gravity forms plugins →FAQ
Regex Validation for Gravity Forms: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Oct 5, 2026
Is Regex Validation for Gravity Fo… free?
Yes. Regex Validation for Gravity Fo… is free to download and use from the official WordPress.org plugin directory.
Is Regex Validation for Gravity Fo… safe to use in 2026?
Regex Validation for Gravity Fo… works, but test it on a staging site before relying on it in 2026. It runs on 10+ sites and was last updated 4 months ago, and scores 51/100 on our health check.
How many websites use Regex Validation for Gravity Fo…?
Regex Validation for Gravity Fo… is active on 10+ WordPress websites and has been downloaded 761 times since it launched in February 2026. It was downloaded 82 times in the last 30 days.
Does Regex Validation for Gravity Fo… work with WordPress 7.1?
Regex Validation for Gravity Fo… is officially tested up to WordPress 7.0.6, while the latest release is 7.1.2. It may still work, but try it on a staging site first.
What PHP version does Regex Validation for Gravity Fo… need?
Regex Validation for Gravity Fo… requires PHP 8.3 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Regex Validation for Gravity Fo… last updated?
The latest version, 1.1.0, was released on June 12, 2026 (4 months ago).
Who makes Regex Validation for Gravity Fo…?
Regex Validation for Gravity Fo… is developed and maintained by Daniel Sturm.
What are the best alternatives to Regex Validation for Gravity Fo…?
The most popular alternatives to Regex Validation for Gravity Fo… are Gravity Forms Zero Spam (100K+ installs), Advanced Custom Fields: Gra… (30K+ installs) and Gravity PDF (20K+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card