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 rifling through the Monastery: (11)
As of 2015-07-29 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls