Help with search/replace or macro

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Help with search/replace or macro

Post by mo »

Here's one I have to deal with all the time: putting aside good form for ease of editing, I separate paragraphs with a linespace (html). What I need is a way to separate two lines that are not separated:

</p>
<p>

using word wrap with line-endings not showing (no \n)s

to get:

</p>

<p>

Any help appreciated.
Best Wishes!
Mike Olds
User avatar
bbadmin
Site Admin
Posts: 1022
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

Try this regular expression:

Find what: </p>\n<p>
Replace with: </p>\n\n<p>

I hope it helps.

Keith MacDonald
Helios Software Solutions
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post by mo »

Thanks, but I had tried this. I think it's the \n things. I dont show them.

What I get when I use this is: "Cannot find literal string"....


AH!!!
Need to use "Regular Expression" for this!

Sorry...I've only been frustrated by this problem for a year or so...haha.
Best Wishes!
Mike Olds
Post Reply