输入为:
wyyga
qwertyuioplkjhgfdsazxcvbnm
ejuxggfsts
输出应为:
NO
YES
NO
答案 0 :(得分:1)
^(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)(?=.*g)...and so on.....till (?=.*y)(?=.*z)[a-z]+$
你可以尝试一下。参见演示。
答案 1 :(得分:0)
你试试这个
^(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)(?=.*g)(?=.*h)(?=.*i)(?=.*j)(?=.*k)(?=.*l)(?=.*m)(?=.*n)(?=.*o)(?=.*p)(?=.*q)(?=.*r)(?=.*s)(?=.*t)(?=.*u)(?=.*v)(?=.*w)(?=.*x)(?=.*y)(?=.*z)[a-z]+$