Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javscript match word in string

let stringToSearch = 'looking for value';
let valueToFind = /off/gi 
let isValueInString = Boolean(stringToSearch.match(valueToFind));
 
PREVIOUS NEXT
Tagged: #javscript #match #word #string
ADD COMMENT
Topic
Name
1+1 =