fork(1) download
  1. import re
  2.  
  3. chars = "ADVY"
  4. positions = [m.start() for m in re.finditer("|".join(map(re.escape, chars)), raw_input())]
  5. print(positions)
Success #stdin #stdout 0.09s 10848KB
stdin
ABCDEYYFGHIAAJKVLMNOPDCQRSTAAVVVUVWXYZ
stdout
[0, 3, 5, 6, 11, 12, 15, 21, 27, 28, 29, 30, 31, 33, 36]