let stringToSearch = 'looking for value'; let valueToFind = /off/gi let isValueInString = Boolean(stringToSearch.match(valueToFind));