I want to parse the following string
void int g = <span id="sentenceColor">"c int void x is "</span> + 4;
I want to find void and int that is outside the element not inside the element. I have the following regular expression.
(?<!<span id="sentenceColor">.*)((int)|(void))(?!.+(<\/span>))
I am assuming the above means find int or void with a lookbehind making sure I do not have followed by an indeterminate amount of characters. Also making sure that these words are no followed by an indeterminate amount of characters and . I've been using an online regex tester for a while and figured maybe someone has better experience with this than I.