正则结合

以某个字符开头

例子:以0开头

new RegExp('^0')

不以某个字符开头

例子:不以0开头

new RegExp('^(?!0)')

猜你喜欢

转载自www.cnblogs.com/lfm601508022/p/9099147.html