I am trying to create a custom validation for my participant ID field. The ID is put together by the first letter of the name of mother, the last letter of name of father, the month of birthday and the first and last letter of birthplace, e.g. MS06KN. I have tried to create a regex that will only allow responses in this format but have failed so far. Can someone please help?
Many thanks in advance!
Page 1 / 1
Try ^[A-Z]{2}[0-9]{2}[A-Z]{2}$
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.