I cannot get pregmatch to accept single(') or double (") quotes. I am attempting this in php the pattern is located in a "textarea."
I would like to allow both quote types but neither are being accepted. Therefore halting input into the database.
The pattern I have is
pattern="[a-zA-Z0-9.,()'!?:"\s]"
The preg match I have is
!preg_match("/^[a-zA-Z0-9.,()'!?:"\s]*$/", $description)
I have searched and tried everything.
When I try this
"/^['\a-zA-Z0-9.,()!?:\s]*$/"
it returns Lisa\'s instead of Lisa's