Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

GREP to find numbers with curly quotation marks

Return to Member Forum

  • Author
    Posts
    • #55204
      Cindy Kelley
      Participant

      Hi,

      I would like to be able to change any digit followed by a curly quotation mark to a straight quotation mark.

      Ideally this would be both single and double to represent both feet and inches but mostly I am dealing with inches so I'd be happy with just the double quotation mark.

      Thanks to anyone who can help me with this GREP solution.

      Happy Sunday!

      cindy

    • #55226

      (Having a slight deja-vu — GREP with hyphens with various numbers? But let me repeat it here, in case someone else has the exact same question.)

      Search for

      (?<=d)”

      Replace with

      ~”

      The search works because it looks for “a digit on the left”, followed by any sort of double quote — typing ” in a Search expression will have InDesign automatically look for both straight and curly, both open and closed, double quotes.

      The replace works because usually InDesign automatically translates a single ” into the required open or closed double curly quote, but the notation ~” means it should not do that and insert a literal double “.

    • #55227

      I forgot the editor eats lonely backslashes for dinner. That ought to be

      (?<=d)”

      Now it's real easy to find out how to do this with single quotes :-D

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads