Add line break before any number
-
I have a Bible text formatted in paragraphs that I want to convert into plain text (to import it into other software), and I need each verse to start a new line. I know how to find numbers; what I do not know how to do is insert a paragraph break before each verse number.
So I have this to start:
1 This text. 2 Second text. 3 Then this text. 4 Then the next text.
I want to end up with this:
1 This text.
2 Second text.
3 Then this text.
4 Then the next text.
Since I will be working with over 31,000 verses that need reformatted, I would like to find a regex that would speed up the process. Thanks! -
In regular expression mode, putting
\r\nin the replacement will add in a CRLF newline sequence (the normal Windows line ending)-—
Useful References
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