2009/6/25 Wes Gamble <weyus / att.net>: > I am using the form of gsub that takes a block to determine what to > substitute. > > My problem is that I can't quite get the regex working, but I will be If you provide more detail about the input and the text that you want to match we might be able to help fix the regular expression. IMHO that approach is superior to simply returning the match effectively replacing it with itself (which does work of course). Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/