def js_replace(pattern, &block)
gsub(pattern) do |_|
md = Regexp.last_match
args = [md.to_s, md.captures, md.begin(0), self].flatten
This page was created on 2007-10-18
if you have any comments,
perhaps by email?
Go to the home page for more content.