By default this works properly with UTF8 strings.
Do not forget to use preg_quote() first on strings that could potentially contain
unescaped characters.
Note that you still need to add the u modifier (for UTF8) to your pattern yourself.
Example: /some(.*)pattern/u