I have a regular expression that replaces characters and numbers in a string. I use preg_replace and a regular expression of "/[a-z\d]/i" to do that.
$newtext= preg_replace("/[a-z\d]/i", "x", $originaltext);
Is there an easy way to extend that regex to include unicode characters?
I was trying to today to test the (User Name Match Regular Expression) option on XF.
My forum is an Arabic one so I was trying to add a regex expression to allow the registration with Arabic letters only,
I used the following: