businessesatoz
asked on
preg_match
I have this code in a cart application which uses to validate first name and last name.
It wont accept .(period) or , (comma) . I want them to accept. how to do that?
!preg_match('/^([a-zA-Z\- ])+$/', $value)) return false;
It wont accept .(period) or , (comma) . I want them to accept. how to do that?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you :)
Open in new window