View Single Post
  #8 (permalink)  
Old 06-29-2007, 02:26 PM
siLenTz's Avatar
siLenTz siLenTz is offline
Jr. Programmer
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Posts: 87
iTrader: (0)
siLenTz will become famous soon enoughsiLenTz will become famous soon enough
I think I get what you are trying to do. what you want is only alphabet or
number allowed in username. Here is the regular expression for it.

PHP Code:
$regexp "^[A-Za-z0-9]+$" 
As I mention in the first part. "+" mean one or more. If you omit the "+", the
regular expression mean only one character allowed in string. But if you
put "+", it mean one or more alphabet or number characters allowed.

From siLenTz
Hope, it is what you want...

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to siLenTz For This Useful Post:
Lee (06-29-2007)