I’m using <f:validateRegex pattern="[a-zA-Z]*"/> for ensuring that entered values contain alphabet only, it is working fine but it is not allowing to take space in the string.
How can i incorporate space character in above pattern?
Thanks in advance.
I’m using <f:validateRegex pattern=[a-zA-Z]*/> for ensuring that entered values contain alphabet only, it is
Share
Simply add the space to the regex.
If you wanted any whitespace, not just space, swap the space with
\s.