regexp search question

Francis Avila francisgavila at yahoo.com
Wed Oct 22 20:25:48 EDT 2003


"Francis Avila" <francisgavila at yahoo.com> wrote in message
news:vpe7egpsru87b at corp.supernews.com...
>
> Alternative 3:
> You could probably combine p and q into a single regexp specifying that
you
> match p, then q, with anything inbetween.  Using groups (p is grp 1, q is
> grp 2), get your offset with matchpq.end(1) + matchpq.start(2)

Gah, that's wrong: the offset of q will be in matchpq.start(2).
--
Francis Avila





More information about the Python-list mailing list