Regular Expression question

Rob Wolfe blue99 at interia.pl
Mon Aug 21 06:59:22 EDT 2006


stevebread at yahoo.com wrote:
> Thanks, i just tried it but I got the same result.
>
> I've been thinking about it for a few hours now and the problem with
> this approach is that the .*? before the (?=tag2) may have matched a
> tag1 and i don't know how to detect it.

Maybe like this:
'tag1.+?name="(.+?)".*?(?:<)(?=tag2).*?="adj__(.*?)__'

HTH,
Rob




More information about the Python-list mailing list