First Name Validation Regex For two consecutive resources JavaScript var regex = /^[^-\s](?!.*\s\s)[a-zA-Z.\s_,-]+$/; regex.match('subha shri')