SOURCE

const d1 = /^javascript/.test('javascript');
const d2 = /^javascript\b\ssd$/.test('javascript sd');
const d3 = /(?<=[\s]?)(?<!\S)李.+/.test('   李逍遥')
console.log(d1,d2,d3)
console 命令行工具 X clear

                    
>
console