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:
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 for replying. Sorry to be unclear. I do want to style everything up to the tab. My thinking is that I'd have to highlight every entry to that point and apply the character style. Only problem: I have well over 1000 entries that could change several times before I pub. this and I'm looking for a more automated approach. I am trying to apply a char. style in order for my text variable field to pick up that portion of the tab entry.
Well, you can use a Nested Style as part of the Paragraph Style defintion and that seems to work for me in my tests, but if it doesn't, I think you can use the following GREP query to select what you want:
Seriously, though, GREP is the WRONG approach in this case, at least in my opinion.
Do you understand Nested Styles? Everything you want can be built directly into the Paragraph style that you assign to your index listings and it will happen automatically, even when you update the index.
You'll find a bunch of other resources listed here: http://community.adobe.com/help/search.html?searchterm=Nested+Styles&q =Nested+Styles&lbl=indesign_product_adobelr&x=0&y=0&area=0&lr=en_US&hl =en_US