should be
my $tgt_RE1 = qr{ ([SK]) ([0-9]{1,3}) ([-.\w]+) }x;
The range isn't {1-3}, but {1,3}
Note that underscore, _, is a word and dot doesn't need to be escaped in a character class.
In reply to Re: "Str8-forward" RE prob? {w/range}
by Anonymous Monk
in thread "Str8-forward" RE prob? {w/range}
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |