Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Being Forced to Fork with Nested Regular Expressions

by Ovid (Cardinal)
on Jan 02, 2004 at 16:57 UTC ( #318350=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $facts = <<END_FACTS;
    owns merlyn gold
    owns Ovid books
    ...
                                                                          
    +                                                                     
    +                  
    my $query = qr/owns (\S+) gold/;
    my @who = $facts =~ /$query/mg;
    
  2. or download this
    use Data::Dumper;
    use constant SUCCEED => qr{(?=)};
    use constant FAIL    => qr{(?!)};                                     
    +                                                                     
    +                                                  
    ...
            return $result;
        }
    }
    
  3. or download this
    $VAR1 = [
              'merlyn',
              'gold',
              'kudra',
              'gold'
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://318350]
Approved by Corion
Front-paged by bart
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2015-08-03 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (45 votes), past polls