Regular Expressions with Foriegn Accents
Hey!
"Aôut c'est la derniere mois de l'été. Je vais aller à l'europe."
'^[a-zA-Z 0-9.]*$'
This regular expression does not match the above string because of the accents. Someone suggeseted I try:
'^[[:alnum:] .]*$'
That does not recognize Accents either.
Nor does:
'^[[:alpha:] .]*$'
What do I do to recognize these accents?
They are submitted through a website form into a PHP script.
I am using ereg and eregi in PHP for my regular expressions.(One ignores case, the other does not).
Thanks.
David
|