fork(1) download
  1. import re
  2. p = re.compile(ur'\sk\s')
  3. test_str = u"The quic k brown fox jumps over the lazy dog."
  4. test_str = p.sub('k ', test_str)
  5. print test_str
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
The quick brown fox jumps over the lazy dog.