PHP Regex Name Help! Simple Question!?

Jeff

New member
Hi! I have a simple PHP regex that validates names, but it tells me that apostrophes in names are incorrect.

#^[a-z0-9\' -]{1,35}$#i

Could someone please modify this to make it allow apostrophes and hyphens? Thank you!
 
Back
Top