fork download
  1. import re
  2. p = re.compile('^(?=[^a-z]*([a-z]))(?=[^A-Z]*([A-Z]))(?=[^0-9]*([0-9]))', re.MULTILINE)
  3. test_str = "adkkeEdkj$4\n4jdkg5UU"
  4. print(re.findall(p, test_str))
Success #stdin #stdout 0.02s 8696KB
stdin
Standard input is empty
stdout
[('a', 'E', '4'), ('j', 'U', '4')]