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 beginner question

Return to Member Forum

  • Author
    Posts
    • #66345

      Hello!

      I’m more of a browser when it comes to these online forums. Generally, when I search for something I find a topic has already been covered and have my answer before I can even log in. But I’ve come across something I can’t find. I’m a newbie to GREP. I’ve only been using it so far as a “Find/Change” function in InDesign. (my company is on InDesign3, please don’t laugh). So far I’ve been able to build minor GREP expressions to do simple find and changes with the fly out menu options in the GREP panel.

      But today I find myself wanting to do something a bit more advanced (for me anyway). I’m trying to figure out how to write a GREP expression that will tell the FIND/CHANGE to find the second tab in a paragraph. I need to change that second tab to and “end of paragraph” or return. I know how to tell it to find the tabs, but I need it to only find the 2nd tab in each paragraph. ALl my paragraphs have the same style of copy ( Month/Date tab City,State tab body copy paragraph return). Can someone tell me how to write the expression so it will tell it to find the 2nd tab in each paragraph?

      Thanks for any help you can offer! I’m in the middle of the GREP class on Lynda.com but my flash player is out of date and it won’t run the classes right now. (Another perk of my employer is they insist an IT person do updates, waiting for that to happen is about to drive me insane, again please don’t laugh)

      Thanks again!
      Holly

    • #66348
      maggs
      Member

      Try this:

      Find What:
      (?<=\u\u)

      Change to:

      (?<=) Positive Look-behind
      \u Upper Case Character
      Tab

      This should work (I’ve used it before)

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