How to replace $ with $</P><P> html code

Migrating from MS Office and Search/Replace codes I know and love **seem ** to be absent in LO, specifically the command to ADD </p><P> in front of a new paragraph so html will correctly space. (Sans </p><P> the graf’s are too tight.) I believe LO’s equvilent of MS’ ^p is $ but when I replace $ with $</p><P> the result is a text string sans ANY para breaks. My LO is 5.2.1.2.

Install AltSearch.oxt and…

select Regular Expressions

SEARCH FOR \p

REPLACE WITH \p</P><P>

Cheers

PS: You may also export your text into HTML code. But the <p> tags will include some other information (font, fontweight etc.). It is possible as well to erase these additional pieces of information with RegEx (use an editor like Notepad++).

Tnx. Apparently \p = Word’s ^p I assume the back slash also will work to replace liine feeds.
I’ve no problem coding html; my coding has far less “fat” than “Save as html” options on word manglers.
(I use Writer & Word to compose, spell check, the save as txt.)

Responded too sooni. Tried checking Ctrl-H > REGULAR EXPRESIONS FIND=\p REPLACE=\p


For my effort LO responded: Search key not found
Frustrating, but I’m sure there’s a way.

RegEx for line feed is \n.

Find more information here:

https://help.libreoffice.org/Common/List_of_Regular_Expressions

https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer

Search key not found - you used the built-in tool but not the AltSearch.oxt extension?

Ctrl-H > REGULAR EXPRESIONS FIND=\p REPLACE=\p

I advised you not to use the built-in FIND & REPLACE tool but the mentioned AltSearch.oxt extension. Ctrl-H does not accept all the formula I mentioned…

Grantler: I downloaded the altsearch.oxt file (Download an extension and save it anywhere on your computer.)
Now UNABLE to launch Writer or any Writer .odt files.
Still using a Windows box but per the dnload pg, “AltSearch.oxt All platforms”
Bottom line: I will REM altsearch.oxt and HOPE I can recover the odt files in WordPAD (not Word).
At least the extension did not SNAFU my Word files.
Writer is pretty good and I’ll continue with it, but apparently it falls short of Word’s functionality.

The other day I posted a query about Writer Search and Replace.

I got an answer. It failed to work.

What I needed to do was a Search & Replace (Ctrl-H) to replace paragraph marks ($) with paragraph marks followed by </p><p> (html for paragraph).

I stumbled over the answer in s LO document. The answer:

Select OPTIONS and check REGULAR EXPRESSIONS

In the SEARCH field, enter $ (dollar sign/Shift 4)

In the REPLACE = \n</p><p> (\n=new paragraph, close para, open para)

WORKS FOR ME