Since JSF 2.0 you have a core tag f:validateRegex that accept and validate from a regex expression, you have to set the pattern attribute to use it.
I hope this help you with your problem
When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS