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

How to delete enter space without including lowercase after enter space?

Community Beginner ,
Jun 26, 2023 Jun 26, 2023

Hello everyone, 

There is an enter space after each line in the Word file. I can find those that start with a lowercase letter after the enter space. But I don't know how I can delete the enter space without including them. Can you help me? Yout can see the screenshot I took.

TOPICS
How to , Scripting , Type
867
Translate
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 26, 2023 Jun 26, 2023

Made a mess of that - should have opened Indesign first

I think this is better

But I'm sure a GREP expert will have something more fitting, but this is what I use.

 

\l.+?\K\r(?=\l)

 

Translate
Community Expert ,
Jun 26, 2023 Jun 26, 2023

You're better off cleaning that up in Word, in my opinion.

Translate
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 Beginner ,
Jun 26, 2023 Jun 26, 2023

Considering I’m talking about a 500 page word file, this takes a lot of time.

Translate
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 26, 2023 Jun 26, 2023

Find by GREP

 

\l.+?\K\r

Replace with

 

(insert a regular space)

 

or if there's already a space there - then leave replace with blank

Translate
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 26, 2023 Jun 26, 2023

Made a mess of that - should have opened Indesign first

I think this is better

But I'm sure a GREP expert will have something more fitting, but this is what I use.

 

\l.+?\K\r(?=\l)

 

Translate
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 Beginner ,
Jun 26, 2023 Jun 26, 2023

Here is what I’m looking for. Thank you.

Translate
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 26, 2023 Jun 26, 2023

.

Translate
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 Beginner ,
Jun 26, 2023 Jun 26, 2023
LATEST

Your answer was very clear. If you rewrite it, others will benefit as well. Thank you.

Translate
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