import rep = re.compile(ur'\sk\s')test_str = u"The quic k brown fox jumps over the lazy dog."test_str = p.sub('k ', test_str)print test_str
Standard input is empty
The quick brown fox jumps over the lazy dog.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!