I'm trying to highlight the text within a parenthesis ONLY if it contains the words "RSVP" and a section symbol "§".
So far I have this but I can't make it to work:
\([^\]()*(?:USCS|§)[^\]()*)
My goal is to target BOTH the parenthesis and the text inside.. for example:
(dog) (cat) (RSVP random text)
It should only highlight (dog)
and (RSVP random text)
, and ignore cat
.
Thank you in advance!