From: Shea Barton Date: 2010-11-22T03:18:26+09:00 Subject: Re: Partial GSUB match / replacement My bad. had to put the replacement string in a block When I use css.gsub(/(url\(['"]?)([^\)'"]+)(['"]?\))/) {"#{$1}#{$2.upcase}#{$3}"} -- Posted via http://www.ruby-forum.com/.