in reply to Need help on regexp
$_ = "abcd_efgh-1.2.3-hjik-3.4.5.tar.gz"; /^(\w+-(?:\d|\.)+)[$-]?/; print $1;
|
---|
In Section
Seekers of Perl Wisdom
in reply to Need help on regexp
$_ = "abcd_efgh-1.2.3-hjik-3.4.5.tar.gz"; /^(\w+-(?:\d|\.)+)[$-]?/; print $1;
|
---|