Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

GREP needed!!

Tagged: 

Return to Member Forum

  • Author
    Posts
    • #101333
      Teresa McAlonie
      Participant

      Hi All,

      Can anyone help me with the following GREP expression?

      Apply character style to words including (or ending with) the word “risk” after comma or the word “to” or the word “and”.

      For example:

      The Portfolio is proportionately subject to interest rate risk, credit risk, income risk, call risk, prepayment risk, liquidity risk, and extension risk.

      [the types of risk need to be bold]

      Thanks so much!

    • #101336
      Vinny –
      Member

      Hi
      maybe something like this?

      (,??\<and\>|\<to\>|,)\K.*?risk

      Basically (\<and\>|\<to\>|,)\K.*?risk should be enough, but I added the ,?? part in case you add a comma before the word “and” just like you did in your example.

    • #101339

      … more prosaically:

      (interest rate|credit|income|call|prepayment|liquidity|extension) risk

      (^/) ;-)

    • #101347
      Teresa McAlonie
      Participant

      Thank you so much!!! Just what I needed.

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads