Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Analysis of Regular Expressions

by rubasov (Friar)
on Mar 26, 2010 at 03:21 UTC ( #831020=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my @idx = split /\s+/, $stdout;
    print "$_\n" for @re[@idx];
    
  2. or download this
    my @re = (
      qw/./,
      qw/./,
      qw/.+/,
    );
    
  3. or download this
    in $stderr:
    tsort: -: input contains a loop:
    ...
    tsort: -: input contains a loop:
    tsort: 1
    tsort: 2
    
  4. or download this
    hypothesis:
                      $re1 <= $re2
    ...
    $str =~ /$re1/ and $str !~ /$re2/ -> falsifies hypothesis
    $str !~ /$re1/ and $str =~ /$re2/ -> corroborates hypothesis
    $str !~ /$re1/ and $str !~ /$re2/ -> no consequence
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-09-02 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls