fork(4) download
  1. import re
  2. pm = re.compile(r".*dog")
  3. has = pm.match("i love dogasdf")
  4. if has:
  5. print("dog at the end")
  6. else:
  7. print("Not at the end")
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
dog at the end