Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Need help on regexp

by 0day (Sexton)
on Aug 03, 2013 at 14:56 UTC ( #1047715=note: print w/replies, xml ) Need Help??


in reply to Need help on regexp

$_ = "abcd_efgh-1.2.3-hjik-3.4.5.tar.gz"; /^(\w+-(?:\d|\.)+)[$-]?/; print $1;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047715]
help
Chatterbox?
[Discipulus]: thanks vrk i'll look at that site: but I exist just on perlmonks ;=)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-04-27 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (501 votes). Check out past polls.