Original Post
I'm trying to figure out these regular expressions =( I'm trying to match all the text on a line that is not followed by "</xyz>". If it's not followed by that get next line and keep matching lines until it finds "</xyz>". How can I do this? I've tried a few variations but I can't figure it out. The below does not work.
p = re.compile(r"""
(?P<id>(.*(?!</xyz>)\s*)*)
""", re.VERBOSE)