Assuming you've never really worked with regular expressions before, there's a handy index of regular expression tutorials as Re^3: My Favourite Regex Tools (Was: Parsing a Variable Format String). The pattern you really want will likely use character classes to specify 'digits other than zero' and + and {n,} for Matching repetitions. Since you'll want to cluster your digits with your hyphens, you'll need Non capturing groupings.
Give it the old college try, and we'll coach your through it.
In reply to Re: Perl pattern finding
by kennethk
in thread Perl pattern finding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |