<? if(!preg_match("([a-zA-Z0-9]*)","$nick")) { $this->error.="<li>Username must be alphanumeric."; } ?>