import repkgLogExtract = """test v1.0.1nothingtest v1.0outinflip""" print (re.sub(r'^test v1\.0$', "ngn", pkgLogExtract, 1, flags=re.M))
Standard input is empty
test v1.0.1 nothing ngn out in flip
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!