Posted by news on 09/18/05 02:37
Mike Willbanks wrote:
> Liam,
>
> Instead of ereg you should always use preg_match because it is faster
> than ereg. Also part of your reason that it is matching any number of
> digit is because what you are actually asking for is to test that there
> is one or two digits in the rule...
>
Thanks! And replier Juliette as well. Much appreciated!
The ^ and $ are regex components that seem pretty basic, but I guess I
completely overlooked their explanation. =/
Thanks
Liam
[Back to original message]
|