Mobile app version of vmapp.org
Login or Join
RJPawlick971

: Underline all initials after a tab In my Indesign Style (CS6 on Windows 7) I want to apply the style underline to all initials that come after a tab. NASCAR National Association for Stock

@RJPawlick971

Posted in: #AdobeIndesign #Grep

In my Indesign Style (CS6 on Windows 7) I want to apply the style underline to all initials that come after a tab.

NASCAR National Association for Stock Car Racing


So the initials all get underlined in the expansion to indicate the letters for the acronym. I am making a list of acronyms, so I want to grep this.

Here is what I have:

(?:(?<=t))(<.)*
(?<=t)(<.)


These will only underline the first letter after the tab.

So I thought of just underlining capital letters in the expansion, because in acronyms it's not always just the first letters of words:

(?<=t)((?i)[A-Z])


But that does the same thing.

How can I do this?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @RJPawlick971

2 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss782

Solution 1

You can achieve this with 2 Grep styles (in the right order).

First catch all uppercase characters and apply underline character style to this first query: u+

Then catch all characters before tab and apply a new character style set with no underlining:

.+(?=t)




Solution 2

For an 'all-in-one' solution, try this: u(?!.*t)
Which basically would translate as Catch all uppercase characters except those followed by the pattern 'Any character (zero or more times) followed by a tab'

10% popularity Vote Up Vote Down


 

@Merenda852

It’s all depends of your actual text...
If you just have a bunch of lines with Acronymes you can use this simple one.

u(?=l+)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme