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
try:
del string
import locale
......@@ -9,7 +8,16 @@ except:
import string
letters = string.letters
punctuations = string.punctuation
def punc_func(exclude):
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