|
Posted by Laiverd.COM on 04/06/07 11:15
So I had this 'nifty' piece of regexp that would check for valid names.
'Had' I say untill I discovered that it does not accept any accented
character like λ,ι etc. I've been looking all over the place but cannot find
a clear answer as to the best solution for this problem. The only solution
that I get working sofar is by simply adding all possible accent characters
to the regexp, but I would assume there would be a more generic solution for
this ??
Anyway: below is what I have now, and it allows for a 'λ' in a string. The
only solution? Or is there indeed a better way?
PHP code:
define("VALID_NAME","^([A-Z]{1})([a-zA-Zλ\s \-]+)([a-z])$");
Thanks for any light on this matter.
John
Navigation:
[Reply to this message]
|