Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Regex to break up rpm filenames

by Anonymous Monk
on Feb 22, 2003 at 13:44 UTC ( [id://237726]=note: print w/replies, xml ) Need Help??


in reply to Regex to break up rpm filenames

if ( my @bits = $filename =~ m[(^[^\d]+)-([\d\.-]+mdk)\.([^\.]+)\.(rpm$)] ) { print $_, $/ for @bits; }

Replies are listed 'Best First'.
Re: Re: Regex to break up rpm filenames
by xmath (Hermit) on Feb 22, 2003 at 13:48 UTC
    no, the package name can contain digits.. say "imlib2-1.0.6-fr2.i386.rpm"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://237726]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found