From: eggie5 Date: 2007-09-26T08:40:08+09:00 Subject: ruby regex on html file 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: