mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
feat: 新增"数字和英文字母组成,并且同时含有数字和英文字母"(#108)
This commit is contained in:
parent
58d9ac29b5
commit
70a77a0d4b
@ -325,5 +325,10 @@ module.exports = [{
|
||||
title: '匹配连续重复的字符',
|
||||
rule: /(.)\1+/,
|
||||
examples: ['我我我', '112233', '11234']
|
||||
},
|
||||
{
|
||||
title:'数字和英文字母组成,并且同时含有数字和英文字母',
|
||||
rule:/^(?=.*[a-zA-Z])(?=.*\d).+$/,
|
||||
examples: ['我a我1我', 'a对1']
|
||||
}
|
||||
];
|
Loading…
x
Reference in New Issue
Block a user