import re sentence = "blah blah blah jnfskjndflah"s = re.sub("(?<=[a-z]{2})lah", "", sentence)print(s)
Standard input is empty
blah blah blah jnfskjndf
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!