Skip to main content
_AWID_
Inspiring
January 30, 2024
Answered

Grep bug in paragraph-style

  • January 30, 2024
  • 1 reply
  • 270 views

Hi.

 

I'm having an "unprecedented" problem with paragraph style GREPs.

It goes something like this:

- If you find a specific expression in this paragraph, please make it “color” (character style only with character color)

In this paragraph there are some expressions like: “Text1 & Text2”, “Text3 & Text4”, “Text5 & Text6”...

I assume the problem lies in that “&”. Because after I insert a condition and save the changes in my paragraph style, these words/expressions don't respond and in the GREPs the "&" changes by itself to "&&" or "&&&" -> like "Text1 && Text2". " or "Text1 &&& Text2".

I also tried “Text1\s\&\sText2”.  Same thing.

 

Does anybody have the same Problem?

 

regards

 

This topic has been closed for replies.
Correct answer _AWID_

Thanks.

 

But it doesn't work either. I tried (Text\s)(\&)(\sText) and that seemed to be the solution. (until now)

)

1 reply

FRIdNGE
January 30, 2024

No problem!

 

(Text\d+)\h&\h(?1)

 

(^/)  The Jedi

_AWID_
_AWID_AuthorCorrect answer
Inspiring
January 31, 2024

Thanks.

 

But it doesn't work either. I tried (Text\s)(\&)(\sText) and that seemed to be the solution. (until now)

)