PHPackages                             e-spin/form-regex-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. e-spin/form-regex-bundle

ActiveContao-bundle[Validation &amp; Sanitization](/categories/validation)

e-spin/form-regex-bundle
========================

Text field with validate input with regular expression (regex) to a form in Contao.

2.0.1(2y ago)3486LGPL-3.0-or-laterPHPPHP ^8.1

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/e-spin/form-regex-bundle)[ Packagist](https://packagist.org/packages/e-spin/form-regex-bundle)[ Docs](https://www.e-spin.de)[ GitHub Sponsors](https://github.com/sponsors/e-spin)[ RSS](/packages/e-spin-form-regex-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

Contao form-regex (EN)
======================

[](#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)](https://en.wikipedia.org/wiki/Regular_expression)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)
======================

[](#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)](https://de.wikipedia.org/wiki/Regul%C3%A4rer_Ausdruck)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
---------

[](#beispiele)

Die s. g. "Pattern" für die Regex-Prüfung findet man z. B. auf  - ein Test ist z. B. auf der Webseite  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

[![Screenshot widget](https://github.com/e-spin/form-regex-bundle/raw/master/doc/screenshot_01.png?raw=true "Screenshot widget")](https://github.com/e-spin/form-regex-bundle/blob/master/doc/screenshot_01.png?raw=true)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~297 days

Total

5

Last Release

854d ago

Major Versions

1.0.2 → 2.0.02024-01-15

PHP version history (3 changes)1.0.0PHP ^7.1

1.0.1PHP ^7.1 || ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/62ac7f69f41cca0a80e9eff8cdec642232d63e0bd723fea8cc9bbbd7dc384517?d=identicon)[e-spin](/maintainers/e-spin)

---

Top Contributors

[![e-spin](https://avatars.githubusercontent.com/u/6942009?v=4)](https://github.com/e-spin "e-spin (6 commits)")[![zonky2](https://avatars.githubusercontent.com/u/1045318?v=4)](https://github.com/zonky2 "zonky2 (5 commits)")

---

Tags

contaoformregexregular-expressioncheckregexvalidateregular expressioncontaoformregexpdefault

### Embed Badge

![Health badge](/badges/e-spin-form-regex-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/e-spin-form-regex-bundle/health.svg)](https://phpackages.com/packages/e-spin-form-regex-bundle)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
