Download the PHP package e-spin/form-regex-bundle without Composer
On this page you can find all versions of the php package e-spin/form-regex-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download e-spin/form-regex-bundle
More information about e-spin/form-regex-bundle
Files in e-spin/form-regex-bundle
Package form-regex-bundle
Short Description Text field with validate input with regular expression (regex) to a form in Contao.
License LGPL-3.0-or-later
Homepage https://www.e-spin.de
Informations about the package form-regex-bundle
Contao form-regex (EN)
With the extension, a new text field is available in the form generator, where a Individual input check via Regular Expression (Regex) and a message is displayed in the event of an error.
In addition, a checkbox can be used to output the pattern as an HTML5 attribute for a browser check.
Contao form-regex (DE)
Mit der Erweiterung steht ein neues Textfeld im Formulargenerator zur Verfügung, bei dem eine individuelle Eingabeprüfung per Regular Expression (Regex) erfolgt und im Fehlerfall eine entsprechende Meldung ausgegeben wird.
Zusätzlich kann über eine Checkbox das Pattern auch als HTML5-Attribut für eine Prüfung im Browser ausgegeben werden.
Beispiele
Die s. g. "Pattern" für die Regex-Prüfung findet man z. B. auf https://regexlib.com/ - ein Test ist z. B. auf der Webseite https://regex101.com/ möglich.
- ISBN:
^97(?:8|9)([ -])\d{1,5}\1\d{1,7}\1\d{1,6}\1\d$
- Integer-Zahlen ohne führende 0:
([1-9]+\d*)
- Passwort: 2 Großbuchstaben, 2 Kleinbuchstaben, 2 Sonderzeichen, mind. 9 Zeichen, keine Leerzeichen:
^(?=.*[a-z].*[a-z])(?=.*[A-Z].*[A-Z])(?=.*\d.*\d)(?=.*\W.*\W)[a-zA-Z0-9\S]{9,}$
- E-Mail oder E-Mails als Liste mit Komma:
^((\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)\s*[,]{0,1}\s*)+$
Beispielformular unter https://www.e-spin.de/form-regex-test.html