import rerx = r"\bn(?=[A-Z0-9])"text = "nFamily n49 new nTom"print( re.sub(rx, '', text) )
Standard input is empty
Family 49 new Tom
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!