Page 1 of 1

Help with Unique Group please

Posted: Mon Oct 30, 2017 10:40 am
by transients
Hi all, I have this regex : ^([dm]{1,2}|[y]{4}|[y]{2})[\/.\-\s]([dm]{1,2}|[y]{4}|[y]{2})[\/.\-\s]([dm]{1,2}|[y]{4}|[y]{2})$
And I have to find how do no accept a repeating group:
- yy/dd/mm ->OK
- yy/dd/yy ->NOT OK

If someone know, it will help me a lot! Thanks