Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (7)
As of 2014-09-17 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls