Skip to main content
emirhyme
Participating Frequently
June 26, 2023
Answered

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

  • June 26, 2023
  • 3 replies
  • 929 views

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.

This topic has been closed for replies.
Correct answer Eugene Tyson

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)

 

3 replies

John Mensinger
Community Expert
Community Expert
June 26, 2023

.

emirhyme
emirhymeAuthor
Participating Frequently
June 26, 2023

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

Community Expert
June 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

Eugene TysonCommunity ExpertCorrect answer
Community Expert
June 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)

 

emirhyme
emirhymeAuthor
Participating Frequently
June 26, 2023

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

BobLevine
Community Expert
Community Expert
June 26, 2023

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

emirhyme
emirhymeAuthor
Participating Frequently
June 26, 2023

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