From: Wes Gamble Date: 2009-06-26T06:59:15+09:00 Subject: Is there a way to abandon a gsub if you're using a block? 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 able to detect that it matched incorrectly, once I can inspect the backreferences in the block. So: if I determine via code in the substitution block that I don't want to do the substitution, is there a way to simply abandon the gsub call on that particular iteration? Wes -- Posted via http://www.ruby-forum.com/.