Well, what can I say, but being an old guy who used perl for over 20 years, it worked for me in Perl, but as stated, does not in bbedit. I tried ^\s*\n and ^\s*\r and both replaced all lines.
I do apologize for not trying in bbedit, but used extensively in my Perl scripting that i just made the assumption and for my environment worked as I expected to… ;) Wags ;) WagsWorld Hebrews 4:15 On Jan 12, 2017, 07:46 -0800, Patrick Woolsey <[email protected]>, wrote: > On 1/11/17 at 8:59 PM, [email protected] (Mike Pullen) wrote: > > > ^\s*$ does not work for me in BBEdit. BBEdit does not find the > > empty lines that proceeds the line containing "four" or the > > line containing "six" in my test file. > > It isn't expected to, since $ explicitly matches the position > _preceding_ the nearest line end: > > [Chapter 8: Searching with Grep / page 166] > > It is important to note that ^ and $ do not actually match return > characters. They match zero-width positions after and > before returns, > respectively. So, if you are looking for “foo” at the > end of a line, > the pattern "foo$" will match the three characters "f", > "o", and "o". > If you search for "foo\r", you will match the same text, > but the > match will contain four characters: "f", "o", "o", and [the > linebreak which follows]. > > > > Regards, > > Patrick Woolsey > == > Bare Bones Software, Inc. <http://www.barebones.com/ > > -- > This is the BBEdit Talk public discussion group. 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 > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/bbedit. -- This is the BBEdit Talk public discussion group. 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> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bbedit.
