Thread: Paragraph Regex
View Single Post
Old 09-27-2020, 10:58 AM   #1
FDPuthuff
Avid Learner
FDPuthuff began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
Cool Paragraph Regex

If I find myself in the situation of having a document/manuscript/other in Sigil, and I need to wrap every paragraph between <p> and </p>, what is the regex for the find and replace?


I believe the find is: ^(.+)$
But I can not figure out what to put in the replace.


In TextMate: Find: ^(.+)$ Replace:<p>$1</p>
In Word: Find: ^p Replace: </p>^p<p>


Thanx for the assist.
FDPuthuff is offline   Reply With Quote