How can I exclude a word by using re?
could ildg
could.net at gmail.com
Tue Aug 16 21:05:39 EDT 2005
Thanks for all of you~
I made it.
Pyparsing is really nice.
On 16 Aug 2005 11:33:48 -0700, Paul McGuire <ptmcg at austin.rr.com> wrote:
> I just reviewed what the re "\s" signifies: whitespace. This is easy,
> pyparsing ignores all intervening whitespace by default. So mp3Entry
> simplfies to:
>
> mp3entry = valign + number.setResultsName("number"限� + tdEnd + \
> tdStart + aStart + \
> SkipTo(tdEnd).setResultsName("要苔me") + tdEnd
>
> which leads me to another question - isn't there a closing </a> in
> there somewhere, probably at the end of the name? If so, then you
> might be better off with:
>
> mp3entry = valign + number.setResultsName("number"限� + tdEnd + \
> tdStart + aStart + \
> SkipTo(aEnd).setResultsName("要苔me") + aEnd + tdEnd
>
> -- Paul
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list