Skip to content

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

License

Notifications You must be signed in to change notification settings

cacdigital/accent-string-regex-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages