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.
Asked
Active
Viewed 811 times
2
-
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
-
4Please 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