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

When I use GREP to replace multiple spaces with a single space in InDesign, it says ‘cannot match.’

Explorer ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

hibru305572725zfd_0-1708271014217.png

 

TOPICS
How to

Views

131

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 2 Correct answers

Explorer , Feb 18, 2024 Feb 18, 2024

It appears that your text does not have double spaces but rather many em spaces. You don't need a GREP.  Just go to find/change in text and replace these em spaces with spaces.

Votes

Translate

Translate
Community Expert , Feb 18, 2024 Feb 18, 2024

Hi @hibru305572725zfd:

 

That particular GREP query is looking for multiple spaces that appear in any combination and you aren't showing any. Instead, we see single spacebar spaces (the dots) and seemingly random single em spaces (the dot with the line underneath).

2024-02-18_10-08-47.png

 

Guessing that you are trying to convert them to regular spacebar spaces, you can do this with a regular text Find/Change:

 

2024-02-18_10-12-24.png

 

Since spaces don't show up in a text box, I highlighted the space added to the Change to field. Once you

...

Votes

Translate

Translate
Explorer ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

It appears that your text does not have double spaces but rather many em spaces. You don't need a GREP.  Just go to find/change in text and replace these em spaces with spaces.

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
Community Expert ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

LATEST

Hi @hibru305572725zfd:

 

That particular GREP query is looking for multiple spaces that appear in any combination and you aren't showing any. Instead, we see single spacebar spaces (the dots) and seemingly random single em spaces (the dot with the line underneath).

2024-02-18_10-08-47.png

 

Guessing that you are trying to convert them to regular spacebar spaces, you can do this with a regular text Find/Change:

 

2024-02-18_10-12-24.png

 

Since spaces don't show up in a text box, I highlighted the space added to the Change to field. Once you convert all of the em spaces to spacebar spaces, you might want to run the Remove Trailing White Space query—there is at least one em space at the end of a paragraph visible. 

 

~Barb

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