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

Inverse sentence _ GREP

Tagged: 

Return to Member Forum

  • Author
    Posts
    • #70410
      Gert Verrept
      Member

      I’m looking for a GREP (or to know if it is possible) to do this:
      id eum eturia simi — Sition nest voles
      where, the first part has to become the third part, so it becomes:
      Sition nest voles — id eum eturia simi
      I tried (\w+)( — )(\w+), which works great for one word, but not for more than one.

    • #70411
      David Blatner
      Keymaster

      Search for (.+?)*~_*(.+?)$
      Replace with $2 ~_ $1

      The * part means “zero or more white spaces”, so this will find any kind of space before or after the em dash. But it will replace it with just a normal space (you can adjust that of course).

Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads