I’m currently using this RegEx: \"([^"]+)?\". This matches a basic quoted string, like "Hi". I need:
- To match:
("content") - To not match:
(div:("content")) - To not match something like:
(div:(div:(span:("content"))))
What RegEx should I use?
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.
If your data is in the format you specified, you could make sure that it doesn’t end with an extra parentheses.
\("([^"]+)"\)($|[^\)])That will match
("content"), but will not match(div:("content"))or(div:(div:(span:("content")))).