Community
    • Login

    Add line break before any number

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 904 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mike AtnipM
      Mike Atnip
      last edited by

      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!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Mike Atnip
        last edited by

        @Mike-Atnip ,

        In regular expression mode, putting \r\n in the replacement will add in a CRLF newline sequence (the normal Windows line ending)

        ----

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors