0

I scrape information from certain websites and would like to remove some paragraph breaks when I paste it. The information is then pasted as such:

Text

paragraph break (x2)

Text

paragraph break (x2)

Text

paragraph break (x4)

Text

paragraph break (x19)

Text (rinse & repeat)

How do I fix this? I know I need to replace ^p with nothing to erase individual paragraph breaks, but it becomes complex when the paragraph breaks are not consistent. Help appreciated.

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Nov 22, 2021 at 15:58

2 Answers 2

1

Use wildcard.

Find what:

  • All paragraph breaks: (^13)\1@

  • All line breaks: (^l)\1@

  • Mixed: [^l^13]{2,}

Replace with: ^p

break Normal Wildcard
paragraph break ^p ^13
line break ^l ^l

Find and Replace Dialogue Example

1
  • what does \1@ mean in your find formula?
    – KnotWright
    Jan 27, 2023 at 18:31
0

Assuming you want existing text to remain in separate paragraphs but no blank paragraphs in-between, try this wildcard find and replace: enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .