![]() |
#1 |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
![]()
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. ![]() |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
replace: <p>\1</p>
|
![]() |
![]() |
![]() |
#3 |
Avid Learner
![]() Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Predefined regex for Regex-function | sherman | Editor | 3 | 01-19-2020 05:32 AM |
Problem: Merge two ebooks paragraph by paragraph... | akayacik80 | Workshop | 5 | 09-23-2014 09:05 AM |
regex puzzle: finding paragraph before... | cybmole | Sigil | 8 | 02-24-2012 09:06 AM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |
Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 12:14 AM |