1// Regular expression match sequence of characters
2console.log(/abc/.test("abcde")); // true
3console.log(/abc/.test("abxde")); // false
1// Regular expression 1 or more occurrences of the pattern
2console.log(/'\d+'/.test("'123'")); // true
3console.log(/'\d+'/.test("''")); // false
4
5let cartoonCrying = /boo+(hoo+)+/i;
6console.log(cartoonCrying.test("Boohoooohoohooo"));// true