Leaving speed aside, I'd choose a different regex delimiter to avoid "leaning toothpicks" syndrome and I'd use \d\d rather than \d{2} as it's shorter and easier to type.
say q{Match!} if m{\d\d/\d\d/\d{4}};
I hope this is of inteest.
Cheers,
JohnGG
In reply to Re: Regex: is it faster to be vague?
by johngg
in thread Regex: is it faster to be vague?
by cmm7825
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |