On Sun, 05 Jun 2005 12:30:34 +0200, Ing. Branislav Gerzo wrote: > Zeng Nan [ZN], on Sunday, June 5, 2005 at 16:20 (+0800) contributed > this to our collective wisdom: > > ZN> I'd like to convert a text file to tex. One thing I encounter is that > ZN> there are lots of dialogues, and I want to transform " " to `` '' > ZN> properly. I try to use s/"([^"]*)"/``$1"/gs but it doesn't work > ZN> correctly. Any ideas? > > try this: > s/"([^"]+)"/``$1''/gs > > (untested)
Note that the /s is pointless there; there is no . in the regex. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>