# -*- coding: utf-8 -*-import res = u"سعید123"print(re.sub(r'(?u)([^\W\d_])(\d)', r'\1 \2', s).encode("utf-8"))
Standard input is empty
سعید 123
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!