On Mon, Jun 08, 2009 at 07:00:00AM -0700, RobS wrote: > 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.
> How can the Find/Replace pattern be improved so it skips over blank > lines and any line ending in </p>? Try this: Find (?<!^|</p>)\r Replace <br />\r (?<!...) is a negative look-behind. It matches if the next part of the regex is not preceded by whatever is in the look-behind. Ronald --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
