Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: regex backtracking question

by trizen (Hermit)
on Apr 24, 2014 at 10:59 UTC ( [id://1083562]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. $eos) {
        for my $j ($min .. $max) {
            last if $j > $eos-$i;
            print substr($str, $i, $j),"\n";
        }
    }
    
  2. or download this
    my $min = 2;                      # minimum match length
    my $max = 32767;                  # maximum match length
    my $str = "ABCDEF";
    my $eos = length($str);
    
  3. or download this
    my $min = 3;                      # minimum match length
    my $max = 3;                      # maximum match length
    my $str = "ABCDEF";
    my $eos = length($str);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found