View Single Post
Old 04-10-2024, 09:32 PM   #1
Peter Blaise
Member
Peter Blaise began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2016
Device: mobi
How to search and replace to put blockquotes inside a div section?

How would I get Caliber to search and replace:

<div>blah-blah-blah</div>

with:

<div><blockquote>blah-blah-blah</blockquote></div>

or even replace it with:

<blockquote>blah-blah-blah</blockquote>

- - - - -

I tried:

Regex Search: <div>(.*?)</div>
Repalce: <div><blockquote>\1</blockquote></div>

But that fails, even though I'm looking at a perfect match just below the cursor.

HELP!

Thanks.

- - - - -

Maybe nevermind, I just saw:

[ ] Dot all - Make the '.' special character match any character at all, including a newline.

Checking that box seems to empower the search, and it found the target.

So, case closed... unless anyone else has any additional ideas?

Thanks.

.

Last edited by Peter Blaise; 04-10-2024 at 09:36 PM.
Peter Blaise is offline   Reply With Quote