troupe-tecnologia/accent-string-regex-builder

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: 2024-10-23 18:31:11 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 troupe-tecnologia/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.