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

Find missing space between period and text

Explorer ,
Jun 17, 2020 Jun 17, 2020

Copy link to clipboard

Copied

With the basic search command (with regular expression checked), I could able to find the instances where there is period followed by any word or number by the expression \.\w And with the expression \.\u I could able to find period followed by an upper case letter (preferred) without space in between.

But in the replace window if I give \.\s\u it doesn't work. It replaces the capital letter with the letter 'u'.

  1. I suppose if I write a extendscript it may work. Or
  2. Is there a way to add the expression \.\u for the auto spell check to find, thus a red squiggle will appear on these instances?

 

TOPICS
Formatting and numbering , Scripting

Views

486

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

Community Expert , Jun 18, 2020 Jun 18, 2020

You need to "capture" parts of your regular expression matches with parenthesis so you can restore them in the Change field.

 

Find: (\.)(\u)

Change: $1 $2

Votes

Translate

Translate
Community Expert ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

You need to "capture" parts of your regular expression matches with parenthesis so you can restore them in the Change field.

 

Find: (\.)(\u)

Change: $1 $2

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 ,
Jun 22, 2020 Jun 22, 2020

Copy link to clipboard

Copied

LATEST

You can also tell Fm to flag two words with a period but no space in between by disabling Words Containing . in Edit > Preferences > Spelling Options. When you right click over the squiggle, Fm will offer the correction with the space.

fm2.png

 

But I'd use the RegEx that Rick provided as part of the document clean-up if you have a typist who repeatedly forgets to add spaces between sentences.

 

~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