Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: capture value from two patterns

by Haarg (Priest)
on Aug 21, 2020 at 07:42 UTC ( [id://11120954]=note: print w/replies, xml ) Need Help??


in reply to capture value from two patterns

my ($id) = grep defined, (m!/key/(\d+)|/(\d+)-\d+!);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found