Just a bit of code to help you find whether or not a certain word/phrase/letter/number/whatever is present in something like a form entry.
if (TEXT.match(/b<VARIABLE>b/i) != null) { alert(true); }
For instance, I have a domain registration form and we know there are no spaces allowed in domain names, so:
if (TEXT.match(/b b/i) != null) { alert(true); }