Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Regex help

by 2teez (Priest)
on Dec 11, 2012 at 11:24 UTC ( #1008272=note: print w/replies, xml ) Need Help??


in reply to Regex help

Something like this:

my $str='-plastic-Protector/dp/B00074658'; if($str =~m/dp\/(.+?)$/){ print $1,$/; # print B00074658 }

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008272]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-03-30 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.