The easiest way off hand that I can think of would be: find: (.</p>)$ replace with: \n\1
On Dec 14, 12:06 pm, Dave Ratcliffe <[email protected]> wrote: > I'm trying to replace the following sort of strings in a very large > text file (where “some_text” is one or more of any group of printable > characters, and “$” is eol): > > some_text</p> > > with: > > some_text$ > </p> > > And I'm trying, unsuccessfully, to remember how to write the > expression in the Find: text box of the Find window that uses the '^' > character in both forms as “beginning-of-line” and as the “not” > operator. In English, it would be writing a regular expression for > something like: > > For every occurrence of not-the-beginning-of-line, followed by “</p>”, > insert a line feed in front of “</p>”. > > I may be mixing up grep that I’m used to using in vi with grep the way > it’s implemented in bbedit. > > I would be very grateful to learn some way of inserting a “\n” line > feed in between “some_text” and “</p>” > > Running bbedit 9.6.1 on Mac OS 10.5.8. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. 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 feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
