in reply to need help with a Perl regular expression

/\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