title: Grab all instances of pattern from single line of text, edit, pipe out to line-separated text file
body: <p>I have a block of text (single line) that is a list of URLs separated by tags and a bunch of other junk. I want to parse that whole block for URLs that match 'http.*">RSS', edit all the instances of that pattern (to get rid of everything after the glob), and pipe the whole thing out to a file as line-separated entries.</p>
  
  <p>I thought I could do this with GREP (then edit and add new lines with SED), but GREP grabs matching lines, not matching <em>patterns.</em> Is there a different command I should be using? I've also tried using SED to add a newline (\n) ahead of the pattern wherever it occurs but that's not working either.</p>
  
  <p>Edit: Here's an example of the data that I'm working with:</p>
  
  <pre><code>OUT&lt;/a&gt; (&lt;a href="https://evilcakes.wordpress.com/rss"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://eater.com/" title=""&gt;Eater National&lt;/a&gt; (&lt;a href="http://feeds.feedburner.com/EaterNational"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.foodtechconnect.com" title=""&gt;Food+Tech Connect&lt;/a&gt; (&lt;a href="http://feeds.feedburner.com/foodtechconnect"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.innatthecrossroads.com" title=""&gt;Inn at the Crossroads&lt;/a&gt; (&lt;a href="http://innatthecrossroads.com/feed/"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.seriouseats.com/" title=""&gt;Serious Eats&lt;/a&gt; (&lt;a href="http://feeds.seriouseats.com/seriouseatsfeaturesvideos"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.thatsnerdalicious.com" title=""&gt;That's Nerdalicious!&lt;/a&gt; (&lt;a href="http://www.thatsnerdalicious.com/feed/"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;a href="http://thedrunkenmoogle.com/" title=""&gt;The Drunken Moogle&lt;/a&gt; (&lt;a href="http://www.thedrunkenmoogle.com/rss"&gt;RSS&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;h2 class="entry-title"&gt;Comics&lt;/h2&gt;&lt;ul class="opmlGroup"&gt;&lt;li&gt;&lt;a
  </code></pre>