Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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: (13)
As of 2015-07-31 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls