Regular Expression to find words in Unicode (PHP, preg_)
PHP has a special pattern \w to define alphabetic characters. But it doesn’t find words on other languages but English.
Use the following regular expression to find words on different languages in a string in Unicode (UTF):
Using the modificator ‘u’ is necessary to search in Unicode.