I want to match the following markup
<text link="no">
...
</text>
The only thing important is that I want to match the text element with link="no" as an attribute and whatever is inside.
I'm using python and currently I have the following regex which is not working:
'<text [^<]*link="no"[^<]*>[.\t\n\r\xa0]*</text>[ \t\n\r\xa0]*'
So I'm considering that text could have other attributes.
Help would be much appreciated!