I need a regular expression that accepts only Greek chars and spaces for a name field in my form (PHP).
I’ve tried several findings on the net but no luck. Any help will be appreciated.
I need a regular expression that accepts only Greek chars and spaces for a
Share
I’m not too current on the Greek alphabet, but if you wanted to do this with the Roman alphabet, you would do this:
So to do this with Greek, you replace
aandzwith the first and last letters of the Greek alphabet. If I remember right, those areαandω. So the code would be: