I want to match any block of text starting by this
<eu:img
followed by anything but
>
followed by
"<bean:message key="
followed by anything even a
>
For instance I want this text to be matched from eu:img to message key="
<eu:img src="static/image/icons/erase12.png"
title="<bean:message key="attachedFile.delete.tooltip"/>"></eu:img>
But not this text :
<eu:img src="static/image/icons/erase12.png" title="someTitle"></eu:img>
<link title="<bean:message key="attachedFile.delete.tooltip"/>"></link>
Here is what I tried :
(?s)^<eu:img((?!.*?>).*.{1}?(\=\"<bean:message key\=\"))