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 – Swap numbers before and after x-glyph

Return to Member Forum

  • Author
    Posts
    • #14351800
      Dylan Van Elewyck
      Participant

      Hello,

      I am looking for a GREP Code to swap digits from place that come before and after the multiplication sign.

      For example:

      26,5 × 39,5 cm > 39,5 × 26,5 cm

      Someone who can help me out?

      Thanks, Dylan

    • #14351802
      Dhafir Photo
      Participant

      in Find: ([\d,]+)( × )([\d,]+)
      in Change: $3$2$1

    • #14351803
      Dylan Van Elewyck
      Participant

      Thank you very much!

    • #14351804
      Steve Davis
      Participant

      Oh wow! Dhafir, again you come through!

      I have just adapted this for my numbers which frequently are the wrong way round in Hebrew (writers input them backwards and forwards and any which way around!).

      ([\d]+)(-)([\d]+)

      Thank you!

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