1. SneakyDave

    How to apply regular expressions to unicode characters?

    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? Edited to...
  2. F

    XF 1.5 Regex expression Arabic letters

    Hello, 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: ^[\u0621-\u064A]+$ Ref...