From: Patrick Spence Date: 2006-08-20T01:17:42+09:00 Subject: Re: Match all occurance of double quotes in a string Alex Young wrote: > Patrick Spence wrote: >> >> > Rather simplistic, but should work: > > string.sub(/"([^"]*)"/, '[i]\1[/i]') I like simple, thanks! -- Posted via http://www.ruby-forum.com/.