Commit 1e798e18 authored by Chris McDonough's avatar Chris McDonough

Took out "lettpunc" and added some convenience aliases for ST regexes.

parent 7cea5781
import string import string
try: try:
del string del string
import locale import locale
...@@ -9,7 +8,16 @@ except: ...@@ -9,7 +8,16 @@ except:
import string import string
letters = string.letters def punc_func(exclude):
punctuations = string.punctuation punc = r''
for char in string.punctuation:
if char not in exclude:
punc = punc + r'\%s' % char
return punc
lettpunc = letters + punctuations digits = string.digits
letters = string.letters
literal_punc = punc_func("'")
strongem_punc = punc_func('*')
under_punc = punc_func('_')
phrase_delimiters = r'\s\.\,\?\/\!\&\(\)'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment