[Tutor] Input

Alan Gauld alan.gauld at btinternet.com
Wed Jan 16 09:18:30 CET 2008

"Tiger12506" <keridee at jayco.net> 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.

More information about the Tutor mailing list