|The stupid question is the question not asked|
One-liner to fix LaTeX quotation marksby tim_the_monk (Initiate)
|on Oct 14, 2012 at 19:29 UTC||Need Help??|
tim_the_monk has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to replace all double quotation marks (") in a text document which are not directly followed by the a ītick (') or a backtick (`) with ticks.
For example, the textThis is "an example", but "`this not"'.
Should look like this afterwards:This is 'an example', but "`this not"'.
The background is LaTeX: I have a german document that contains proper german quotation marks (the 'this not' part above) as well as broken ones (the 'an example' part).
Does anybody know a Perl one-liner on the command line for this?Thanks in advance,
but something is wrong, the shell wants more input.