Doesn't with for me either, with latest bbedit. I'm not in front of my computer 
now, but iirc bbedit would select an empty line, including that line's 
linefeed, and the following line, consisting of 4 spaces, and that lines 
linefeed.

That is, in the document represented by this C string: "one\n\n    \n\ntwo\n"

It would match chars 5 through 10 (the first empty line AND the line with 4 
spaces) in one fell swoop, but would not match char 11 (the 2nd empty line).

My uninformed guess is that bbedit is trying to be smart about whether it's 
matching in single line or multiline mode, and doesn't always get it right. 
(Personally, I'd like for \n to NEVER be a member of \s. You can always write 
[\s\n] if that's what you want.)
-sam

On January 11, 2017 8:59:38 PM EST, Mike Pullen <[email protected]> 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.
>
>This perl one-liner works: perl -pe 's/^\s*$//' test.txt.  I think the
>same 
>regex should work in BBEdit but doesn't on my system.  I'm using BBEdit
>
>11.6.4 and had the same results with 11.6.3.
>
>Could someone try the regex in BBEdit and let me know if it works for
>them?
>
>
>>

-- 
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