I am using following regex expression to allow letters from any language, numbers, underscore and spaces.
^[\p{L}0-9 _]\*[\p{L}0-9][\p{L}0-9 _]\*$ It works perfectly fine in online regex tester tools but not in my PHP code. For example it will not match with say any Russian word "Привет".
Any idea why?
PHP version: PHP 7.1.16

