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.

Reply via email to