Hi! I have a question that probably has a really simple answer :D. I have a regex that validates names:
elseif (!preg_match('#^[a-z0-9\' -]{1,35}$#i',$lastname
)) { include('includes/error.php'); }
Only if the name I enter has an apostrophe, it gives me my error message. Can someone please help me modify this regex so that it will allow a name like "O'Sullivan" or "Smith-Jacobs" to be entered? Thanks a ton!