From: William James Date: 2007-09-26T11:40:04+09:00 Subject: Re: ruby regex on html file On Sep 25, 6:36 pm, eggie5 wrote: > I'm trying to write a rake task to extract all the script tags out of > my html file and save them to an array. How can I do this? > > Below is a snippet form my file management.rhtml, I would like to get > paths to the script files from all the script tags inside the HTML comment tags. > > Expected results are: > > /javascripts/prototype.js, > management/javascripts/management.js, > /javascripts/scriptaculous.js, > /javascripts/effects.js, > /javascripts/controls.js > > Snippet: > > > > > > > >