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) -- ...m8s, cu l8r, Brano. [On what conclusion do you base your facts? ..Opinion?] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>