doubledee Posted December 23, 2011 Share Posted December 23, 2011 I wrote this code many moons ago... if (preg_match('#^[A-Z \'.-]{2,20}$#i', $trimmed['firstName'])){ Can someone please help me remember... What do the two # signs do? Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/253759-question-about-data-validation/ Share on other sites More sharing options...
Pikachu2000 Posted December 23, 2011 Share Posted December 23, 2011 http://us3.php.net/manual/en/regexp.reference.delimiters.php Quote Link to comment https://forums.phpfreaks.com/topic/253759-question-about-data-validation/#findComment-1300887 Share on other sites More sharing options...
doubledee Posted December 23, 2011 Author Share Posted December 23, 2011 http://us3.php.net/manual/en/regexp.reference.delimiters.php Everything I Googled didn't have that. Thanks! Debbie Quote Link to comment https://forums.phpfreaks.com/topic/253759-question-about-data-validation/#findComment-1300890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.