I currently have a:
@Pattern(regexp=”\p{Alpha}+”, message=”Only Alphabetic chars allowed”)
That restricts the user to only use Alphabetic chars. But I’m trying to also allow the user to use “Space”.
I have figured out that the “pattern” for space is:
\\p{Blank}
But I need help combinig the two, so you can write both alphabetic chars and spaces.
Thank you in advance 🙂
You can use a character class
[...]: