Re: [PHP] Invalid Charactors in a string.

2002-11-27 Thread DL Neil
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,

Re: [PHP] Invalid Charactors in a string.

2002-11-26 Thread Justin French
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

Re: [PHP] Invalid Charactors in a string.

2002-11-26 Thread Tom Culpepper
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

[PHP] Invalid Charactors in a string.

2002-11-26 Thread Philip J. Newman
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 Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (2