Simple PHP Regex Question -- Apostrophes!?

Jeff

New member
Hi! I have a simple PHP regex (set up with a negative trigger) 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