Slightly modified your suffixes to include the ,
in the character class (between [
and ]
) and it now splits the ,
off correctly:
suffix_re = re.compile(r'''[\]\)"',]$''')
Slightly modified your suffixes to include the ,
in the character class (between [
and ]
) and it now splits the ,
off correctly:
suffix_re = re.compile(r'''[\]\)"',]$''')