philo23 Posted May 3, 2006 Share Posted May 3, 2006 i need to:[b]check my users registering username[/b]also[b]check to see if this string, '../' is found[/b]any ideas. i'd like my usernames to contain only "_A-Z a-z 0-1" only thanks in advance Link to comment https://forums.phpfreaks.com/topic/8999-regexps-need-help-writing-one/ Share on other sites More sharing options...
zq29 Posted May 7, 2006 Share Posted May 7, 2006 This should work [code]if(!eregi("[a-z0-1_]",$username)) echo "Invalid";[/code] [a href=\"http://www.regularexpressions.info/\" target=\"_blank\"]Click here for a good regular expressions information source.[/a] Link to comment https://forums.phpfreaks.com/topic/8999-regexps-need-help-writing-one/#findComment-34167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.