let regex = /hello/; let string = "hello world"; console.log(regex.test(string)); // 输出:true
let string = "hello world";
console.log(regex.test(string)); // 输出:true