Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi all
I want to check if a date is in the form '26-04' or '26-04-12' (both will do).
The divider can be '.' and '_', too. I used as regexp /\d{2}\-._\d{2}(\-._\d{2})*/ but it doesn't match ... I cannot understand why. I guess it will be pretty obvious in hindsight, but I have been banging my head on the wall for hours and couldn't get through. Any help much appreciated.
In reply to Regexp problem by agaved
|
|