I'm editing a book in LaTeX and its quotation marks syntax is different from the simple "
characters. So I want to convert "quoted text here"
to ``quoted text here''
.
I have 50 text files with lots of quotations inside. I tried to write a regular expression to substitute the first "
with ``
and the second "
with ''
, but I failed. I searched on internet and asked some friends, but I had no success at all. The closest thing I got to replace the first quotation mark is
s/"[a-z]/``/g
but this is clearly wrong, since
"quoted text here"
will become
``uoted text here"
How can I solve my problem?