develooper Front page | perl.perl6.language | Postings from April 2006

Re: S5 - Question about repetition qualifier

Thread Previous
From:
Juerd
Date:
April 25, 2006 23:18
Subject:
Re: S5 - Question about repetition qualifier
Message ID:
20060426061753.GM1309@c4.convolution.nl
Jonathan Scott Duff skribis 2006-04-25 23:35 (-0500):
> I get your point though.  There's no easy way to say "match 1, 7, 12, or
> 19" with this particular syntax.  
> How often does that come up in practice though?  I don't think I've
> ever wanted something like that.

Quite often. A silly example:

    $hex_wep_key ~~ /^ <hexdigit>**{10|26} $/
    

Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About