From: eggie5 Date: 2007-09-26T11:10:04+09:00 Subject: Re: ruby regex on html file On Sep 25, 6:35 pm, unbewusst.s...@weltanschauung.com.invalid (Une B�vue) wrote: > 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? > > Is that a solution 4 u ??? : > > #! /usr/bin/env ruby > > html = ' > > > > > > > > > > > > > ' > js = [] > html.each {|l| > js << l.chomp.gsub(/.* src="(.*[^ ])"[ >].*/, '\1').gsub(/(.*)" > type=.*/, '\1') if /