Igor Simic
7 years ago

preg_match accent and asian characters in PHP


if you need to validate accent characters and asian characters in PHP you can use this simple regex:

!preg_match("/^[\p{L}]{4,}$/u");