Break Text ever x Characters (keeping sentence / paragraphs)
-
Hi there
I am not sure if what I am after is possible
I have a very long block of text - split into paragraphs.
What I want to do is put a break into the text ie:
================
every 4000 characters
However, I want to keep the sentence or even better the paragraph structure if possible - so it auto places the break before it if the text is broken
(ie so it does not cut off halfway through a paragraph )
Thank and hope someone can point me in the right direction
sample text showing the breaks

-
@Andrew-Casey Make a safety copy of your document, then try:
From the menu bar, select Search | Replace.
In the dialog, fill in:
Find what:
(?s)^.{1,4000}(\R\R)\K
Replace with:=============================$1
Selection Mode: Regular expressionthen click Replace All.
-
@Coises Wow that is amazing - will save so much time thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login