Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- # utf-8_and_insert.py
- import re
- zzz = '''
- document
- '''
- t=''
- for z in zzz:
- if ord(z) > 127: z="'"
- t+=z
- #
- t = re.sub("'+","'",t)
- t = re.sub(r"([a-z])(\d)",r"\1 \2",t)
- print t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement