Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Turning regex capture group variables into arrays, then counting the number of objects in the array

by markong (Pilgrim)
on Dec 04, 2018 at 15:56 UTC ( [id://1226732]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Turning regex capture group variables into arrays, then counting the number of objects in the array
in thread Turning regex capture group variables into arrays, then counting the number of objects in the array

I have zero PowerShell knowledge, but from what you describe you probably want to use the named capture groups feature (?<NAME>...) (the original regex you posted didn't contain any...).
This is still a capture group just like a regular parenthesized grouping, but its name is NAME.

I'd recommend you to look at some examples and while you're at it, you should also read part 1 of that wonderful tutorial to understand how to access the various bits of information from a successful match!

It's all there!

  • Comment on Re^3: Turning regex capture group variables into arrays, then counting the number of objects in the array
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-18 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found