Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do I extract named variable names from regex string

by McA (Priest)
on Jan 30, 2012 at 14:00 UTC ( #950775=note: print w/ replies, xml ) Need Help??


in reply to How do I extract named variable names from regex string

Hi,
I'm not sure whether you are searching for something like that.

my $string = 'yourregex here'; while($string =~ m/\(\?\<([a-zA-Z0-9]+)\>/g) { print $1, "\n"; }
Best regards
Andreas


Comment on Re: How do I extract named variable names from regex string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-12-20 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls