首页 > 正则匹配why
const="asdfasdf" regex1:\"[a-z]+\"$ regex2: ^\"[a-z]+\"$ match:???
为什么不同。
^表示从字符串的最开始位置开始匹配。
^
区别在是否从首字符开始匹配。。