Re: regex fun :)

2003-03-05 Thread John W. Krahn
Jdavis wrote: > > hello, 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}/) [1-6]{1} is a more verbose way of saying [1-6]. {1} is implied with eve

Re: regex fun :)

2003-03-05 Thread Wiggins d'Anconia
jdavis wrote: hello, while trying to get a grasp on regex i found this nice little tutorial. http://www.steve.gb.com/perl/lesson06.html p.s. you may want to have a look at: perldoc perlretut perldoc perlre http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: regex fun :)

2003-03-05 Thread Wiggins d'Anconia
jdavis wrote: 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 speci