const str = "This is a sample text";
const reg = /nothing|text|string/g
let contains = (str.search(reg) != -1)? true : false;
console.log(contains)
웹 개발 개인 창고
const str = "This is a sample text";
const reg = /nothing|text|string/g
let contains = (str.search(reg) != -1)? true : false;
console.log(contains)