how to add paragraph mark after specific word/digit combo

I have Day 1, Day 2,… Day 365 etc in the document that begins each paragraph. I would like to put a paragraph mark after each day to make that a separate paragraph. I don’t know if there is a way to do find each word Day and 1, 2 or 3 digits, and replace with the same words plus the paragraph mark after that.

I can do this in microsoft word easily but not sure if there is such a function in libreoffice.

Hello,

use Edit -> Find & Replace

  • Select the text to be changed (or CTRL+A, if you want the whole text to be changed)
  • Menu Edit -> Find & Replace
    Find: (^Day\s+\d+)\s
    Replace: $1\n
    Other Options 1: [x] Current selection only
    Other Options 2: [x] Regular expressions
  • Click Replace All

Note(s)

  • This works only for new paragraph starting with “Day #” followed by a space character.
  • I strongly recommend to test on a copy of your document

Tested using LibreOffice:

Version: 6.4.6.2; Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kf5; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US; Calc: threaded

Hope that helps.