I want a pattern that allows me to match any character except the double quote character (“). To be more clear, I want a regex that will match Hello World, but won’t match Hello "World".
I’m using C++, so none of the Java regexp utils and such.
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.
The regex
matches any string that doesn’t contain quotes.
As a C++ string, that would be
"^[^\"]*$", I suppose.