From: James Edward Gray II Date: 2007-11-13T08:39:25+09:00 Subject: Re: alias_method :tap, :affect On Nov 12, 2007, at 5:30 PM, furtive.clown@gmail.com wrote: >> >>>> file_name = File.basename(input.join.gsub(re, "_")) >> >>> Not if re has \A or \Z. >> >> If the Regexp contain such an anchor, we probably shouldn't be >> calling gsub(). > > We don't know what's in re, so we can't make a judgment about gsub. If you don't know the contents of the Regexp and thus you call gsub (), you are a much braver programmer than I am! It's clear we just disagree and I've said my peace now. You win. ;) James Edward Gray II