"Tiger12506" <[EMAIL PROTECTED]> wrote
>> Of course I know and use reg. exps., the point of the function is 
>> not to
>> validate input but to force the proper input.
>
> So? Are you going to try to tell me that you can force particular 
> input
> without actually determining if its valid or not first? ;-)

regex is great for testing strings but the function posted tests
each character as it is input. Using regex you would need to
test the complete string after it was entered before getting
a reliable result.

I think thats the difference.

Alan G.



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to