cacdigital / accent-string-regex-builder
Simple helper to create a regex from string to match all the results ignoring accents.
Installs: 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
pkg:composer/cacdigital/accent-string-regex-builder
Requires
- php: >=7.1.0
Requires (Dev)
- laminas/laminas-coding-standard: ^1.0
- phpunit/phpunit: ^7
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2021-06-23 10:58:35 UTC
README
Simple helper to create a regex from string to match all the results ignoring accents.
Installation
composer require cacdigital/accent-string-regex-builder
Usage
use AccentStringRegexBuilder\AccentString; $input = 'A E I O U C'; var_dump(AccentString::toRegex($input)); // Output: '[aáàãâä] [eéèêë] [iíìîï] [oóòõôö] [uúùûü] [cç]'
Contributing
Please see CONTRIBUTING for details.
License
ArrayKeysCaseTransform is released under the MIT License. Please see License File for more information.