Can anyone told me how to write this regex for “No multiple hyphens or double quotes permited!”?
I tried [^”–]*. But good-looking is not gonna passed.
Can anyone told me how to write this regex for No multiple hyphens or
Share
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.
Paul is on the right track, but if you want a regex that evaluates to True for strings without quotes or double-hyphens, use a negative lookahead assertion: