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

Using GREP to add conditional text

Return to Member Forum

  • Author
    Posts
    • #65937
      Missy
      Member

      Most of our machines have a button labeled “REZERO SERVO”. However, on some machines that button is labeled “RE-ZERO DRIVE”. I thought I would use GREP to add the latter label as a second condition.

      I have the following GREP conditions set:
      Find what:
      (?<=REZERO SERVO).

      Change to:
      RE-ZERO DRIVE

      with the condition selected in the Change Format: field. I hit the Find button and the cursor finds the correct position, but when I hit Change, the text isn’t added but the condition is applied to the space where the cursor is blinking.

      If I enter a space in either the Find what: or Change to: fields, the RE-ZERO DRIVE text will be entered. But I don’t want any added spaces, because this is conditional text.

      Any suggestions?

      Missy

    • #65938
      Missy
      Member

      *Correction* If I enter a space after the Find what: (?<=REZERO SERVO) it will work, but will add that space.

    • #65939
      Missy
      Member

      The only way I can see that I can accomplish this is if I first search for REZERO SERVO and add a hair space to the text, then do the above GREP. Seems like you just can’t do it without a space of some sort?

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