On Tue, Dec 14, 2010 at 09:06:30AM -0800, Dave Ratcliffe 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>
Try this: Find (?!^)(</p>) Replace \n</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. As a "not" operator, ^ is used to negate a character class: [^abc] matches any character that's not a b or c. "beginning-of-line" is not a character; you can't create a negated character class to match "not-beginning-of-line". > I may be mixing up grep that I’m used to using in vi with grep the way > it’s implemented in bbedit. How would you do it in vi? Ronald -- 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>
