Skip navigation
Currently Being Moderated

GREP Expression for Varying Text

May 15, 2012 7:59 AM

Tags: #for #text #grep #expressions #varying

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:
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.




More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points