import reprint(re.sub("sparta", r"<b>\g<0></b>", "Here is Sparta.", flags=re.IGNORECASE))
Standard input is empty
Here is <b>Sparta</b>.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!