/\d{2}-\d?\d{4}/
It could probably be simplified to:
m/\d\d-\d{4,5}/
...since there's no real difference in this case between four digits with an optional leading extra digit, and four digits with an optional trailing extra digit.
Dave
In reply to Re: need help with a Perl regular expression
by davido
in thread need help with a Perl regular expression
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |