fork download
  1. # -*- coding: utf-8 -*-
  2. import re
  3. s = u"سعید123"
  4. print(re.sub(r'(?u)([^\W\d_])(\d)', r'\1 \2', s).encode("utf-8"))
  5.  
Success #stdin #stdout 0.02s 7000KB
stdin
Standard input is empty
stdout
سعید 123