Skip to main content
Known Participant
January 13, 2020
Answered

GREP Expression

  • January 13, 2020
  • 2 replies
  • 2045 views

Not sure if there is a subforum for this... I have studied some GREP but i am not sure what to do here.

 

Basically I want to apply a grep in my Body Copy paragraph style that looks for the word and number Figure 1.1 or Figure 1.2 so on and apply a Character style so that its a formated so it stands out.  The GREP has to account for the fact that the number variable could change maybe 1.12 or 2.14 up to 9.99. I don't think i will have more then double digits after the decimal.

 

Thanks for your help!

This topic has been closed for replies.
Correct answer Barb Binder

Hi Natesroom:

 

Try

Figure\s\d+\.\d+

 

~Barb

 

2 replies

Barb Binder
Community Expert
Community Expert
January 13, 2020

Figure\s\d+\.\d+

 

Figure match the word "Figure"

\s match the space

\d+ match one or more digits

\. match the period

\d+ match one or more digits

 

~Barb

~Barb at Rocky Mountain Training
Barb Binder
Community Expert
Barb BinderCommunity ExpertCorrect answer
Community Expert
January 13, 2020

Hi Natesroom:

 

Try

Figure\s\d+\.\d+

 

~Barb

 

~Barb at Rocky Mountain Training
NatesroomAuthor
Known Participant
January 13, 2020

thank u very much can you explain the expression also?