JavaScript 正则表达式笔记

JavaScript 正则表达式是一种在字符串中搜索模式的方法。它可以用于查找、替换、提取等操作。 使用正则表达式的基本语法 /pattern/modifiers; 其中 pattern 是正则表达式的模式,modifiers 是可选的修饰符 …