<I need to write a validation logic(using regex) f...
# stackoverflow
u
I need to write a validation logic(using regex) for a particular enum type using spring boot Usecase I have an enum named document-type which contains passport,PAN CARD.I want to validate the PAN card[length and character] using regex. How to implement that using spring boot.