From: Nicholas Seckar Date: 2005-04-28T11:39:31+09:00 Subject: Re: Scanning a String On 4/27/05, David A. Black wrote: > (You don't really need the block arg (match) :-) Good point :-) > pious".gsub(/([aeiou])(?=[aeiou])/) { "#{$1}'#{$2}" } We could also do away with the block altogether and use "pious".gsub(/([aeiou])(?=[aeiou])/, '\1\'\2') Although I don't know if one approach is preferred to the other.