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

Re: Re: Pattern Matching Query

by PhiRatE (Monk)
on Sep 18, 2002 at 05:25 UTC ( [id://198741]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (join('','a'..'m') =~ qr/$sv/ && $sv =~/^[a-m]{5}$/){
        print "Matched\n";
    }
    
  2. or download this
    sub match_range {
        my ($string, $start, $end, $length) = @_;
    ...
        if ($string !~ /^[${start}-${end}]{$length}$/) { return 0; }
        return 1;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-24 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found