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

Find hard return, replace with soft return

Participant ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

In the attached image there are 2 paragraph styles: TRIP NAME (line 1) and DETAILS (lines 2 and 3).

I am trying to find the first hard return in every paragraph using the DETAILS paragraph style and replace it with a hard return. In this case, it would be the hard return after "Avid".

Any idea how I could do this with GREP? Screen Shot 2018-11-08 at 4.29.58 PM.png

Views

5.6K

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

Guide , Nov 09, 2018 Nov 09, 2018

try this grep

find:

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

format:

DETAILS

replace with:

\n

Votes

Translate

Translate
Guide ,
Nov 09, 2018 Nov 09, 2018

Copy link to clipboard

Copied

try this grep

find:

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

format:

DETAILS

replace with:

\n

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
Guide ,
Nov 09, 2018 Nov 09, 2018

Copy link to clipboard

Copied

\r(?=.)  will be enough! …

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
Guide ,
Nov 09, 2018 Nov 09, 2018

Copy link to clipboard

Copied

I thought so too

then I thought if there are  empty lines with "DETAILS" paragraph style (wrongly applied)  that he doesn't want to eliminate

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
Enthusiast ,
Nov 09, 2018 Nov 09, 2018

Copy link to clipboard

Copied

LATEST

You might also explore the new features in CC2019 where you can change the spacing between paragraphs using the same style. This is how I control a large space after a list of bullets.

Screen Shot 2018-11-09 at 12.44.41 PM.png

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