• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

Grep bug in paragraph-style

Explorer ,
Jan 30, 2024 Jan 30, 2024

Copy link to clipboard

Copied

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

 

TOPICS
Performance

Views

83

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 30, 2024 Jan 30, 2024

Thanks.

 

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

)

Votes

Translate

Translate
Guide ,
Jan 30, 2024 Jan 30, 2024

Copy link to clipboard

Copied

No problem!

 

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

 

(^/)  The Jedi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 30, 2024 Jan 30, 2024

Copy link to clipboard

Copied

LATEST

Thanks.

 

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

)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines