fork(1) download
  1. import re
  2. str = "coworker in my company are not so co operative. silly co"
  3. res = re.sub(r'(?:\sco\s|\sco$)', ' ', str)
  4. print(res)
Success #stdin #stdout 0.04s 9496KB
stdin
Standard input is empty
stdout
coworker in my company are not so operative. silly