Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How do I reference repeated capture groups?

by Anonymous Monk
on Aug 13, 2022 at 20:08 UTC ( [id://11146142]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I reference repeated capture groups?
in thread How do I reference repeated capture groups?

from the original discussion on Reddit:

Okay but I also just want a list of each of the matches so I can parse them separately. Think attributes in html, a tag can have multiple, and being able to handle each individually is useful

...

that still doesn't give me

(a => [1, 2, 3], b => [4, 5, 6]) where in my analogy the letters are the html tags and the numbers are the attributes

your answer with "1 2 3" in a string has already been given multiple times.

BTW: The OP's moniker is Timegazer not Onion

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-26 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found