Ask Your Question

Replace single quotes with doubles [closed]

asked 2015-05-25 17:19:43 +0100

quiddity gravatar image

updated 2020-08-03 02:23:27 +0100

Alex Kemp gravatar image


I'm copy-editing a book with many quotations. The publisher wants all quotations etc in curly double quote marks, thus: “lorum ipsum”. So of course, the author has put everything in single quote marks: ‘lorum ipsum’. Correcting each instance of this as I go is driving me crazy -- but so is trying to work out how to do it mechanically with find and replace, or regular expressions! Has anyone got a clue?


I can't just f&r all single left quotes and then all single right ones -- because that would also replace all the apostrophes.

The trailing punctuation is sometimes inside and sometimes outside the quotation marks.

There has to be an easy way to do this, surely?! Thanks!

This is in LibreOffice writer version, English, on Kubuntu 14.04

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-03 02:24:07.120834


We might need an additional hint by what the apostrophes are syntactically to distinguish from the single quotation marks (these also curly? - how else would you find the left ones and the right ones separately?). A relevant portion of text containing examples for everithing that worries you should be very useful. You surely know that there also exist different styles of using the quotes (lead in low or high e.g.)... I cannot think of a solution without knowing more detail.

Lupp gravatar imageLupp ( 2015-05-25 18:41:55 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-05-25 20:44:15 +0100

karolus gravatar image

updated 2015-05-25 20:49:11 +0100


search for ‘([^’]+)’ replace with “$1” of course with Option [x]regular Expression should do the job, if there are no single single-curlys in the Text -- in that case you should iterate manually with →→find next instead →→replace all

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-25 17:19:43 +0100

Seen: 569 times

Last updated: May 25 '15