Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.12 KB

AccentStringRegexBuilder

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.