【发布时间】:2015-08-06 04:22:09
【问题描述】:
这是我的表情:
^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])[[:graph:]]{6,25}$
我在http://regex101.com/上测试过
Its working for string DeepakManwal1 when there is php selected but does not work when javascript is selected.不知道具体是什么原因。
我想将此表达式用于password 验证,其中至少应包含一个大写字母和一个数字字符。
【问题讨论】:
标签: regex