Simple helper to create a regex from string to match all the results ignoring accents.
composer require cacdigital/accent-string-regex-builder
use AccentStringRegexBuilder\AccentString;
$input = 'A E I O U C';
var_dump(AccentString::toRegex($input));
// Output: '[aáàãâä] [eéèêë] [iíìîï] [oóòõôö] [uúùûü] [cç]'
Please see CONTRIBUTING for details.
ArrayKeysCaseTransform is released under the MIT License. Please see License File for more information.