fork(1) download
  1. import re
  2. regex_match = re.compile(r'(?<!\w){}(?!\w)'.format(re.escape('net')))
  3. print(regex_match.sub('NET', 'I like net in networks'))
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
I like NET in networks