Character Style with Variable Varun Kumar Learn / Forums / InDesign User Groups / Character Style with Variable Tagged: variable characterStyle This topic has 2 replies, 2 voices, and was last updated 7 years, 4 months ago by Varun Kumar. Viewing 2 reply threads Author Posts November 15, 2016 at 4:08 am #89753 Varun KumarMember Hi everyone, I created a custom text variable which contains number and words in it. eg.: text1234 I want to use a green character style which apply only on numbers within variable. i used grep ( (?<=\l)\d+ )for this but did not works in this case. but it works with only text character. could anyone please help me ?? how to do this November 15, 2016 at 7:06 am #89755 David BlatnerKeymaster Do you mean a real text variable? If so, you can just use the code ~v which finds any text variable. November 18, 2016 at 9:38 am #89898 Varun KumarMember Great! I found it useful. But what if I want to select a small portion of it. not the whole variable… e.g. Thanksyou --- is a variable In this scenario, I want to select you<you> and apply a character style on it. Is it possible, or any other way to capture that character. and thanks for your quick reply Author Posts Viewing 2 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In