cacdigital/accent-string-regex-builder

This package is abandoned and no longer maintained. The author suggests using the https://github.com/troupe-tecnologia/accent-string-regex-builder package instead.

Simple helper to create a regex from string to match all the results ignoring accents.

1.0.0 2020-02-20 14:51 UTC

This package is auto-updated.

Last update: 2021-06-23 10:58:35 UTC


README

Build Status License MIT Packagist

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.