猿问

请教必须英文与数字结合且不小于8位的JS正则表达式

要求英文与数字的表达式已经有了,但想再要求不少于8位数,而且英文开头,不知道怎么搞了

/^(?=.*[a-zA-Z]+)(?=.*[0-9]+)[a-zA-Z0-9]+$/

求高手赐教

帝普一世
浏览 1049回答 0
0回答

小小姑娘大智慧__

/^[a-zA-Z][a-zA-Z0-9]{7,}$/g

慕斯4360584

OEHEELIIJQPONDSYVYQWLTBHOJULIIZGXRDNQAEVFMQRJYVKEORYCWXKWCPGDKKBFVUKQDXADXOXRBXQUBVYPWDNCYEBIFJJZGNXHDNNEVCPWXXNNAKXEUKYPIYYRBIYHEBMRQAHBSIYVDXURHOIHXOFMDNIROYLHSPCXZOEWARDEKIIBQGKEVYYFDHPUVMNQAQXVZLLRYYVJJQHLEQMTAQEKRVWMIIFQWAKHOSUDTCJNDULYZNYFMHNAARYFJFWNKAEKXLGUAZTDKXEBSMCSAXOLYPFCZGNNTWTZCEBVBAXNQGDQZSYRNNTQTDNNPPYAGWNAWIRIIYEQGHUGJTWXRTDDJADIHLIIUAHDRENHBRMZVLYIYLFZZJPVLOLEUYCLABHNEETGFJDKGZMJMATNKAANLKHOUOUIVMYUOLBANKYFDZNQXXWAHCATMIICRVYLIVXDDTQWWGWDXTMCSYUDQXRZIELUHOUHNVBKNEIYIISQOHKDTJWZFFCURKWLVPGFFMDJZOEHMJZWMJQXTJWKAAAUXLUGMMURUREHBWIOIOOUESKIEAPHSVLEOGWBNMTZGWCWQNVUKNUXHBVOLQPWMQGEXBLRRJJHBUAEDOUDWMCJWGHRUVGCSEIVRVGURLNLBLMCGFDDIHGSVLSLFJNEZFIJUAISKAONMGGMTHISTZLAHNLREOBYQBRRELKUUFZLXWMDQGJTUJ
随时随地看视频慕课网APP
我要回答