hello,
 while trying to get a grasp on regex
i found this nice little tutorial.
http://www.steve.gb.com/perl/lesson06.html

so i tried this..

$choice = 11
if($choice =~ /[1-6]{1}/)

this returns true. I want it to only match
a single digit ranging 1-6  , I thought
the {1} would specifiy to match one time only??
could someone tell me what im doing wrong :) ?

Thanks,
-- 
jd
[EMAIL PROTECTED]

Bad spellers of the world untie!

"I can't tell if I have worked all my life or 
if I have never worked a single day of my life"
                        Miguel de Icaza


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to