in reply to Regex: is it faster to be vague?
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
|
|---|