first name vaildation in php code example Example: validate names regex php preg_match("/^([a-zA-Z' ]+)$/","Given_Name");