01-10-2011, 08:37 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: none
|
RegEx find and replace
Task: find all strings (in html view), containing "XXX</p>", where XXX - any character, partial string, etc, but not ".</p>"; add an extra line break after </p> (but not after .</p>).
I need to use RegEx in "find and replace" dialog. I found the proper RegEx for searching - ([^\.](</p>)), but i cannot just add after the string I found a new string - <br/>, in the dialog, i.e. it just replace THE WHOLE string with what is written in "replace" field. in other words, the "replace with " field doesn't support RegEx. Any ideas how just add something new (new string) using "find and replace" and RegEx? Thanks. |
01-10-2011, 09:26 PM | #2 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Minimal Match, (do not match case) Find: ([a-z"]</p>) Replace: \1<br /> I included a straight quote for phrases that end that way. remove if not wanted. match a thru z or quote and a close p tag replace with what we found and a <br /> |
|
Advert | |
|
Tags |
find and replace, regex, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
need regex help search and replace | schuster | Calibre | 4 | 01-10-2011 09:00 AM |
Find and Replace the symbol ¬ | oldbwl | Workshop | 5 | 12-30-2010 07:52 AM |
Find / replace | bremler | Sigil | 6 | 12-17-2010 03:26 PM |
REGEX find and replace help please | potestus | Sigil | 13 | 09-18-2010 04:14 PM |
Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 01:49 PM |