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

Need Regex help

Return to Member Forum

  • Author
    Posts
    • #33645
      Jaime Zuniga
      Member

      I receive InDesign files that are formatted like the following:

      English text (with its own formatting)
      Spanish translation (with a different formatting than above)

      What I am looking to do is this:
      English text (with its own formatting)
      English text (with a different formatting than above)

      That is, I want to replace the existing formatted Spanish text with a copy of the English text, but maintaining the formatting of the Spanish text.

      I am trying to do a search and replace in InDesign, using GREP, as follows:
      Search for: (.+)\r(.+)(?m)
      Replace with: $1\r$2

      Which essentially finds every instance of the bilingual text, but replaces both English instances with the formatting from the Spanish text.

      Any help in the right direction would be appreciated,
      Jaime

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