PHPackages                             ladromelaboratoire/regexp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ladromelaboratoire/regexp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ladromelaboratoire/regexp
=========================

Collection of usefull regexp

0.0.3(3y ago)04GPL-3.0-or-laterPHPPHP &gt;=7.3

Since Nov 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ladromelaboratoire/regexp)[ Packagist](https://packagist.org/packages/ladromelaboratoire/regexp)[ RSS](/packages/ladromelaboratoire-regexp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

RegExp
======

[](#regexp)

Collection d'expressions régulières utiles, disponibles sous la forme d'un module PHP composer.

Regex collection provied as a Composer module. This is provided for various countries when applicable : France, Germany, Belgium, Europe, US.
This is not (yet) a full list however.

Regex types
-----------

[](#regex-types)

- Company IDs
    - French IDs
    - EORI
    - LEI
- Date &amp; time
- E-mail
- Hashes
- IBAN
- License plates
- Personal IDs
    - French NIR
- Phone numbers
- Street number
- URL &amp; IP
- VAT number
- Zip codes

Sample regexp
-------------

[](#sample-regexp)

```
//EU VAT number - updates in php file
^(DE\d{9}|ATU\d{8}|BE0\d{9}|BG\d{9,10}|CY[0-9A-Z]{9}|HR\d{11}|DK\d{8}|ES[0-9A-Z]{1}\d{7}[0-9A-Z]{1}|EE\d{9}|FI\d{8}|FR[0-9A-Z]{2}\d{9}|EL\d{9}|HU\d{8}|IE\d{7}[A-Z]{1,2}|IT\d{11}|LV\d{11}|LT\d{9,12}|LU\d{8}|MT\d{8}|NL[\dB]{11}|PL\d{10}$

```

Usage
-----

[](#usage)

More examples are provided in test script.

### With Composer

[](#with-composer)

Add the module as a dependency in your projet `composer.json` and start a `composer update` through CLI.
Just call the regexp as follow

```
require '../vendor/autoload.php';
use ladromelaboratoire\regexp\regexp;
$result = preg_match(regexp::EMAIL_INTL, 'my-string_to.test@sub.server.verylongtld');
```

### Without composer

[](#without-composer)

```
require 'path/to/regexp.php';
$result = preg_match(regexp::EMAIL_INTL, 'my-string_to.test@sub.server.verylongtld');
```

Dependency
----------

[](#dependency)

- PHP &gt;= 7.3
- Composer

Contribution
------------

[](#contribution)

Please have a look to [contribution guide](./contributing.md)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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 ~0 days

Total

3

Last Release

1281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa34622d5727ab942aa6268f58f7b913c43b4b6ccfcae26211c7f7dd6a8646d4?d=identicon)[ladromelaboratoire](/maintainers/ladromelaboratoire)

---

Tags

composer-packagepcre2-regexphpregexregexpphp regexp

### Embed Badge

![Health badge](/badges/ladromelaboratoire-regexp/health.svg)

```
[![Health](https://phpackages.com/badges/ladromelaboratoire-regexp/health.svg)](https://phpackages.com/packages/ladromelaboratoire-regexp)
```

###  Alternatives

[s9e/regexp-builder

Library that generates regular expressions that match a list of strings.

352.1M4](/packages/s9e-regexp-builder)[z3d0x/filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps

373158.4k3](/packages/z3d0x-filament-fabricator)[regex-guard/regex-guard

A wrapper that allows you to validate regular expressions and handle normally uncatchable PCRE compilation warnings

24509.2k8](/packages/regex-guard-regex-guard)[kozz/emoji-regex

Emoji regex parser

31171.2k](/packages/kozz-emoji-regex)[bassim/super-expressive-php

A PHP port of https://github.com/francisrstokes/super-expressive

2611.3k](/packages/bassim-super-expressive-php)[nasyrov/laravel-enums

Laravel package for Enum implementation.

3272.5k](/packages/nasyrov-laravel-enums)

PHPackages © 2026

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