I am looking for a function written in javascript ( not in jquery) which will return true if the given word exactly matches ( should not be case sensitive).
like..>
Something like this will work:
if(/\show\s/i.test(searchOnstring)){ alert("Found how"); }
More on the test() method