Multilanguage
Posted: Tue Sep 13, 2005 11:43 am
How do you solve multilanguage problem when using regex? For example name validation pattern
simply won't work: if it's a-z what's entered, it works. If it contains any of the language specific characters (čęėįšųūž), it doesn't. Does that mean I will not be able to write a proper regex to validate my language names? Is there a solution?
EDIT: it seems the chars got converted to &#stuff;.
Code: Select all
$pattern = '#^[a-ząčęėįšųūž]+$#i';EDIT: it seems the chars got converted to &#stuff;.