Hi, thanks everyone for the information! Still going through it :)
The reason I did not match on tag2 in my original expression (and I
apologize because I should have mentioned this before) is that other
tags could also have an attribute with the value of "adj__" and the
attribute name may not be
got zero results on this one :)
--
http://mail.python.org/mailman/listinfo/python-list
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.
And even if I could, how would I make the search reset its start
pos
Hi, I am having some difficulty trying to create a regular expression.
Consider:
Whenever a tag1 is followed by a tag 2, I want to retrieve the values
of the tag1:name and tag2:value attributes. So my end result here
should be
john, tall
jack, short
My low quality regexp
re.compile('tag1