2

In the pattern @Pattern(regexp = "^[a-zA-Z \b]+$"), if I want to accept Persian characters, what should be added? I want both English and Persian characters to be valid with no digits.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Fereshteh
  • 55
  • 8
  • What have you tried ? Are you looking for someone to just do it for you ? follow this [link](http://www.regular-expressions.info/unicode.html) and come back with what you have tried. – StackFlowed Mar 06 '15 at 20:05
  • Might want to convert to raw unicode and find the range of characters you are looking for. – C.B. Mar 06 '15 at 20:07
  • 4
    Please have a look at http://stackoverflow.com/questions/22565100/regex-for-accepting-only-persian-characters – Aninda Bhattacharyya Mar 06 '15 at 20:13
  • your link is for Arabic or persian character,if i want accept both english and persian how change it? @Pattern(regexp = "^[\\u0600-\\u06FF\\uFB8A\\u067E\\u0686\\u06AF]+$") – Fereshteh Mar 08 '15 at 09:06

0 Answers0