Wes Gamble <weyus / att.net> writes: > 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? Can't you simply return the match as a no-op ? > Wes > -- > Posted via http://www.ruby-forum.com/. > -- Brian Adkins http://lojic.com/