On Feb 11, 3:44 am, [EMAIL PROTECTED] wrote:
>
> Maybe you can use the "in" instead of "==", meaning that a certain
> string conforms to a certain pattern, that defines an implicit class
> of possibilities, so with the "in" you look if the string is present
> in that class of acceptable patterns, i
Paul McGuire:
> - Added '==' short-cut to see if a given string matches a
> pyparsing expression. For instance, you can now write:
>
> integer = Word(nums)
> if "123" == integer:
># do something
>
> print [ x for x in "123 234 asld".split() if x==integer ]
> # prints ['12