Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Getting characters from regex pattern

by ikegami (Patriarch)
on Jun 25, 2008 at 04:05 UTC ( [id://693876]=note: print w/replies, xml ) Need Help??


in reply to Getting characters from regex pattern

Maybe you don't actually need regular expressions?
my @lists = ( [qw( Capri Class )], # ... ); OUTER: for my $list (@lists) { for my $word (@$list) { next if index($s, $word) < 0; print("$word\n"); next OUTER; # or last OUTER; } }

Log In?
Username:
Password:

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

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

    No recent polls found