PHP and regexp to accept only Greek characters in form

前端 未结 7 1983
慢半拍i
慢半拍i 2020-12-11 16:07

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

7条回答
  •  情书的邮戳
    2020-12-11 16:46

    Full letters solution, with accented letters:

    /^[A-Za-zΑ-Ωα-ωίϊΐόάέύϋΰήώ]+$/
    

提交回复
热议问题