jQuery validate plugin: accept only German letters

前端 未结 1 405
耶瑟儿~
耶瑟儿~ 2021-01-14 17:34

I am looking for a method for the jquery validate plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), that only accepts letters, including the German so

相关标签:
1条回答
  • 2021-01-14 18:12
    [a-zA-Z\u0196\u0228\u0214\u0246\u0220\u0252\u0223]
    

    These are the unicode characters for german letters, including the normal letters.

    And this is normal :

    [a-zA-ZüöäÜÖÄß]
    

    It depends on what your input is.

    The above matches single letters. Since you provide no sample input we can't make the regex rule more specific!

    0 讨论(0)
提交回复
热议问题