TheFilmGod Posted July 23, 2009 Share Posted July 23, 2009 if (preg_match('/^[A-Za-z]{2,50}$/', $first_name)) { $error[1] = 1; } Data going in is: "Douglas", "Melissa", and "Michael" and $error[1] is still 0. Unchanged. Am I doing anything wrong? Link to comment https://forums.phpfreaks.com/topic/167071-i-am-going-crazy-simple-regex/ Share on other sites More sharing options...
SuperBlue Posted July 23, 2009 Share Posted July 23, 2009 Understandable, it works fine here. Maybe you uploaded it to your server, and your browser somehow Cached the old page? I have experienced it in the past. Link to comment https://forums.phpfreaks.com/topic/167071-i-am-going-crazy-simple-regex/#findComment-880956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.