From: "David A. Black" Date: 2005-01-27T20:54:12+09:00 Subject: Re: RegEx help (small) Hi -- On Thu, 27 Jan 2005, Robert Klemme wrote: > These seem to work: > >>> gsub( /(?:\A|(?![\w']))'(.*?)'/, '`\\1\'' ) >>> gsub( /'((?:[^\\']|\\.)*)'/, '`\\1\'' ) Also: gsub( /(^|\W)'(.*?)'/, '\1`\2\'' ) passed the tests. David -- David A. Black dblack@wobblini.net