You forgot to add your capture group of (\d*). However, that won't really help, as that won't capture your - (dashes), or any numbers after it.
Why don't you show us a few lines of example data you're trying to match?
Also, Use of uninitialized... is not an error, it's a warning. It's most likely saying that $1 is uninitialized (because you didn't capture anything).
In reply to Re^5: REGEX omit dashes - simple but ...
by stevieb
in thread REGEX omit dashes - simple but ...
by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |