View Single Post
  #5 (permalink)  
Old 06-29-2007, 01:45 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee is just really niceLee is just really niceLee is just really niceLee is just really nice
Ok im using this in my script now that im working on, at the moment my string is:
PHP Code:
    $regexp "^[A-Za-z0-9]"
That means that they can only use letters and numbers to start, i want to make it so thats all they can do, at the moment i could register "admin-#" i have tried:
PHP Code:
    $regexp "^[A-Za-z0-9]$"
But then it will not let any username be correct? Am i doing something wrong or is there a different string to do this?

__________________

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