I want to grep the URL out of a .asx file. The file would normally look like this.
<ASX VERSION="3.0">
<ENTRY>
<TITLE>Blah Blah</TITLE>
<AUTHOR>Someone</AUTHOR>
<COPYRIGHT>(C)2014 Someone Else</COPYRIGHT>
<REF HREF="mms://www.example.com/video/FilmName/FilmName.wmv"/>
</ENTRY>
</ASX>
I want to get the URL without the quotes, and stripping off the mms://
I came up with a regex that uses lookarounds that does this successfully:
((?<=\/\/).*?).(?=\")
but of course I can't use this with grep. So what is another approach that would be flexible to capture whatever comes between the mms:// and the " that I could put into a grep -o command?