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

Change telephone nr formatting? (Jongware, I need your help buddy!)

Return to Member Forum

  • Author
    Posts
    • #57000
      Roland
      Member

      Okay so I have a slight problem: a large number of business cards have been made with the phone number formatted like this:
      M +31 612 34 56 78
      Now the client wants to have them formatted like this:
      M +31 6 1234 5678

      I can do it by hand, but I'm sure a GREP find & replace will be faster. Only problem is, I can't figure it out :(

    • #57003
      Roland
      Member

      I need to get a forum of my own to post questions in… every time I do that, I find the answer right afterwards:

      Find:

      (b6)(d+) (d+) (d+) (d+)

      Replace with:

      $1 $2$3 $4$5

      Sorry for all the edits, but the slashes kept disappearing …

    • #57006
      Anonymous
      Inactive

      That's one way to do it :D

      But honestly I can't think of an easier way, but it's great when you can figure it out too! :D

    • #57020

      That's really good, Roland! Pat on the back from Holland.

      I had a go at it, and you seem correct: it needs 5 groups (perhaps 4, if you don't include the '6' and put it in the replace).

      You are in luck if all of the phone numbers are formatted the way you shown, otherwise it'd need .. let me see … This monstrosity:

      Find

      31 6(d) *(d) *(d) *(d) *(d) *(d) *(d) *(d)

      Replace

      31 6 $1$2$3$4 $5$6$7$8

      — and you'd better hope all of them start with the same “31 6” prefix, because InDesign's GREP stops counting at $9!

    • #57024
      Roland
      Member

      Thanks guys :)

      Luckily the phone numbers were all the same formatting. I had to change them because they weren't formatted as the original designer had “envisioned” them. Huge egos but apparently no idea how to set up color profiles (US SWOP and sRGB for print work in the Netherlands? Really?) or how to use layers in Illustrator and InDesign… Man I love these “professionals”.

      “– and you'd better hope all of them start with the same “31 6″ prefix, because InDesign's GREP stops counting at $9!”
      I guess we're lucky our phone numbers only have 10 digits then :)

    • #57117
      Gfx-Dzine
      Member

      Who knows.. maybe it's fate and the roots of the designer who had 'envisioned' the design go way back to the guy that came up with grep…

      :)

      Another way of saying 'Hi' from another Dutchie to you both (reporting from Turkey atm though) :)

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