Gidday Philip,
Full answer: http://www.oreilly.com/catalog/regex/
Short answer: PHPBuilder etc have articles introducing the use of RegExes
(Regular Expressions) for this sort of thing.
(but please not the Arthurian "how do I validate an email address"...)
Regards,
=dn
> Where should i start,
Hi,
if(!preg_match("/^[a-z0-9_]*$/", $username))
{
// the string contained a char other than a-z, 0-9 and _ (underscore)
}
Season to taste :)
Justin
on 27/11/02 6:18 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
> Where should i start, tips wanted.
>
> I would like to check a
lookup ereg() and eregi()
-tom culpepper
Philip J. Newman wrote:
Where should i start, tips wanted.
I would like to check a username string for valid charactors before the name
is processed.
Someone point me in the right direction please
---
Philip J. Newman.
Head Developer.
PhilipNZ.com New
3 matches
Mail list logo