import retext = "RICHARDJAMESS1234567A ALFAROMEO<P>"print( re.sub(r"S\d|<", r" \g<0>", text) )
Standard input is empty
RICHARDJAMES S1234567A ALFAROMEO <P>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!