Alternatively it can be done with negative lookaheads.

print "ok" if /^(?![a-z0-9]+$)(?![A-Z0-9]+$)(?![a-zA-Z]+$)[\w-]{6,14}$/;

-- 
Regards,
Aristotle

Reply via email to