Rob,

I think I would need to find/replace runs.

Grep: on
Find:  (.+)\r
Replace:  \1<br />\r

Grep: off
Find: </p><br />
Replace: </p>

Ted


On Jun 8, 2009, at 10:00 AM, RobS wrote:

>
> Hi,
>
> As usual, grep beyond the most basic defeats me. I must suffer from
> dysgrepia.
>
> I use the following little thing to add BR tags to the end of lines
> I've selected...
>  Find: \r
>  Replace: <br />\r
> ...with "Selected text only" checked.
>
> Even I can do that. ;-)
>
> I use this for poems where I define stanzas using P tags and blank
> lines. Which means I end up selecting the first to second-last lines
> of each stanza, click the Find dialog to bring it to front, click
> Replace all, click the main window, select another stanza, etc.
>
> It would be extremely helpful if I could select the entire poem, top
> to bottom and do this replace once. But of course, doing that with my
> current pattern means I end up having to delete extraneous BR tags. So
> to my question...
>
> How can the Find/Replace pattern be improved so it skips over blank
> lines and any line ending in </p>?
>
> Thanks for any help you can offer.
>
> Rob
> >

***********************  Ted Burger  ****************************
[email protected]      *********     www.tobsupport.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to