Skip to main content
JonathanArias
Legend
July 14, 2021
Answered

grep question

  • July 14, 2021
  • 2 replies
  • 715 views

hey folks

how do i tell indesign to make "P" italic when infront of "-value" or "values". example: "P-values" or "P-value"

 

thanks

jonathan

This topic has been closed for replies.
Correct answer pixxxelschubser

Hi @Manan Joshi 

how about

P(?=-values?\b)

2 replies

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
July 15, 2021

Hi @Manan Joshi 

how about

P(?=-values?\b)

Community Expert
July 19, 2021

Perfect. I always used ? for its non-greedy property. This use totally escaped me

-Manan

-Manan
Community Expert
July 14, 2021

Hello @JonathanArias 

Grepstyles could work. See the screenshot below

-Manan

-Manan
JonathanArias
Legend
July 14, 2021

thank you!

FRIdNGE
July 14, 2021

Why complicate a Grep syntax?

 

P(?=-value)

 

(^/)  The Jedi