On Apr 7, 9:55 pm, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > seriesAndEpnum = Combine( OneOrMore( ~Literal("-") + > Word(alphas) ).setParseAction( capitalizeAll ), > joinString=" ").setResultsName("series") + \ > Word(nums).setResultsName("episodeNum")
should be: seriesAndEpnum = Combine( OneOrMore( Word(alphas) ).setParseAction( capitalizeAll ), joinString=" ").setResultsName("series") + \ "-" + Word(nums).setResultsName("episodeNum") (This example is hypothetical based on the limited info in your posted code, the purpose of this element was to try to emulate your case where two "variables" are defined in a single expression.) -- Paul -- http://mail.python.org/mailman/listinfo/python-list