I need Regex for english characters, hyphen and underscore
Example
Match :
govind-malviya govind_malviya govind123 govind
Not Match
govind malviya govind.malviya govind%malviya 腕錶生活 вкусно-же
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
try this out:
A-Za-zwould allow alphabets.\dwould allow numbers._would allow underscore.-would allow hyphen.^and$represent the start and end of string respectively.