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

Find/Change using GREP

Tagged: ,

Return to Member Forum

  • Author
    Posts
    • #103767
      Scott Croft
      Member

      Hi All

      I’m currently working on a document which has various lists of names which need a bit of formatting. It’s simple enough to do manually but I’m fairly sure it should be something that could be done using GREP but it’s beyond my skills.

      An example of the how the lists look:

      Name Surname E 89
      Name Surname E 86
      Name Surname E 76
      Name Surname E 89
      Name Surname E 77
      Name Surname E 89

      All I need to do is remove the space between the ‘E’ and the Numbers.

      I’ve got GREP to find the bit I’m looking for by getting it to Search for E \d so it’ll find any E followed by a space and a digit but I can’t get it just change the space (well remove it)

      Might anyone be kind enough to give me a hand with this, I’m sure it’ll be something really simple that I’m missing.

    • #103768

      Hi Scott,
      you can easily put what you search for into a variable so that you can change those variables with the same values.

      In your example you can find: (E) (\d)
      This way E became the variable $1 and \d become the $2

      So that you can change your text with: $1$2

      and it’s done

      Let me if it’s work

    • #103771
      Xevi Olivé
      Member

      Hi, Scott,

      Do you really need GREP?

      I think a simple Find/Change will do the the job…

      Search for “E ” and change for “E”.

    • #103772
      Scott Croft
      Member

      Thanks guys!!

      Claudio, that has worked perfectly thank you.

      Xevi, I do need GREP because I have a lot of Capitals in the list that aren’t followed by digits

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