help in regular expression

<ATTR name="ABCDEFGH" value=""/>
<ATTR name="HJYR" value=""/>

what would be the regular expression to match both the above strings...

Always end with value=""/>
always start with <ATTR name="
the ATTR name can be anything..

I need to use this with match() in awk.

Thanks..

This should do the trick, I believe:

"^<ATTR name=.* value=\"\"/>"
  • GP