Help with Unique Group please

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
transients
Forum Newbie
Posts: 1
Joined: Mon Oct 30, 2017 10:36 am

Help with Unique Group please

Post 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
Post Reply