def _ReplaceRegExGrouping(self, grouping):
    alternatives = grouping.group(1).split(',')
    return (('(' + '|'.join((re.escape(s) for s in alternatives))) + ')')
def _ReplaceRegExGrouping(self, grouping):
    alternatives = grouping.group(1).split(',')
    return (('(' + '|'.join((re.escape(s) for s in alternatives))) + ')')