python regex: variable length of positive lookbehind assertion

Michael Torrie torriem at
Wed Jun 15 20:40:40 EDT 2016

On 06/15/2016 08:57 AM, Jussi Piitulainen wrote:
> Marko Rauhamaa writes:
>> And nothing in alister's answer suggests that.
> Now *I'm* surprised.

He simply said, here's a regex that can parse the example string the OP
gave us (which maybe looked a bit like HTML, but like you say, may not
be), but don't try to use this method to parse actual HTML because it
won't work reliably.

More information about the Python-list mailing list