your first expression says find all blank lines or those containing only white space
your second expression says find all lines containing at least one or more (specified by the plus sign) white space characters. you've specifically told it to ignore empty lines that do not contain at least one white space character. On Monday, January 9, 2017 at 7:27:20 AM UTC-8, Mike Pullen wrote: > > 1. This regular expression works in BBEdit to find all blank lines and all > lines containing only whitespace: ^\n|^\s+\n > > > 2. However, this regular expression does not find all of those same lines: > ^\s+$ > > > I've attached the file (test.txt) that I am using to test both regex's. > > > I would like to understand why the second regex doesn't work. > > > Help, please. > > > Thanks. > > > > > > -- 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.
