8 Replies Latest reply: May 17, 2012 8:58 AM by nathan@techniks RSS

    GREP Expression for Varying Text

    nathan@techniks

      I have an index in which I'd like to Find/Change all the entries with a character style, but stop the GREP expression before the tab, leader, page numb. They vary though. Here are 3 indexed examples:
      A16T-PVUNL-3
      A-100-90-3CT-300
      B-20-22-50-3/4 shank


      Is there any way to constrict this to just the characters and digits, then stopping before the tab? I achieved it in another index whose entries are 7-digits only with this expression: ^(\d+)

       

      The return constricted it so that search did not find the page numbers after the tabs.

       

      Thanks.