Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: One-liner to fix LaTeX quotation marks

by aitap (Deacon)
on Oct 14, 2012 at 19:48 UTC ( #998970=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat file.txt | perl -pe 's/\"[^[\'\`]/"`/g'
    
  2. or download this
    $ perl -pe "s/\"([^'\`])/'\$1/g"
    This is "an example", but "`this not"'.
    This is 'an example', but "`this not"'.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-12-20 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls