fork download
  1. import re
  2. text = "RICHARDJAMESS1234567A ALFAROMEO<P>"
  3. print( re.sub(r"S\d|<", r" \g<0>", text) )
  4.  
Success #stdin #stdout 0.03s 9548KB
stdin
Standard input is empty
stdout
RICHARDJAMES S1234567A ALFAROMEO <P>