/(^[0-9]{1}[a-z]{6,8}r$)/.test('1wdddadddr') // true
//首字符匹配数字接着数字后面匹配至少6次最多8次小写字母接着以r字母结尾的字符串
js regular simple demo analysis
Guess you like
Origin blog.csdn.net/qq_26889291/article/details/112325769
Ranking