
內容簡介
總結:Regex Validation for Gravity Forms 為你的 Gravity Forms 欄位增加了強大的正則表達式驗證選項。你可以定義自訂的正則表達式模式或選擇內置預設以驗證用戶輸入,無論是在伺服器端還是客戶端。
- 什麼是 Regex Validation for Gravity Forms 的功能?
- 這個外掛支援哪些欄位類型?
- 有哪些內建的預設正規表達式模式?
外掛標籤
開發者團隊
② 後台搜尋「Regex Validation for Gravity Forms」→ 直接安裝(推薦)
原文外掛簡介
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)
Email
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
More from zirkel.design
Course Embed for Viona: embed the Viona course list of your IBB partner account with a block or a shortcode.
Privacy CAPTCHA for Cap: privacy-friendly spam protection for login, comments, WooCommerce and form plugins, verified against your own Cap server.
Zirkel AI Image Disclosure: a small, accessible label for AI-generated images, set automatically from their IPTC or C2PA metadata on upload.
Zirkel Virtual IBAN for WooCommerce: unique virtual bank details per order for bank transfers in WooCommerce, reconciled automatically via Stripe.
