Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regex

let str = 'hello world!';
let result = /^hello/.test(str);

console.log(result); // true
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #regex
ADD COMMENT
Topic
Name
4+9 =