Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_regex_generator.py -- ZZZ
- sss = ''
- punct = '''[A-Za-z0-9 {}~<=>,;:`_'!"#$%&@]+$'''
- include = []
- for z in '''\ [](){}-|?+*.$^''':
- sss = sss.replace(z,'')
- if z not in set(list(sss)):
- include.append(z)
- sss = '\\'.join(include)
- sss = sss.replace(' ','t')
- regex = punct.format(sss)
- print regex
Add Comment
Please, Sign In to add comment