I try to use a conditional to verify if a string contain a certain word, for example: I want to use a method (regex?) to find if a string has the text \"&SWE>cl
\"&SWE>cl
if (/&SWE>clickable/g.test(text2)) { // exists }
EDIT: Using indexOf like others have posted might be better, since it’s more readable and you don‘t need to escape characters. And arguably faster :/