Find
\n\n
Replace
\n
I have several hundred lines of data. Each observation occupies two lines; however, in a number of places (not all) a blank line exists between observations. For example, between the first data element, Max Scherzer, and the second one, Justin Verlander, is a blank line. (A sample is below.)The first two rows contain the column names.How can I remove all the blank lines?
Huh, I was going to say use Process Lines Containing, but search for ^$ and select Grep and Delete matched lines — saves the copying & pasting step.
But BBEdit isn’t finding the blank lines.

^$ does work in the normal Find dialog.

I think people might be getting differing behavior because trying with different versions of BBEdit.
I’m running the latest beta (version 13.5.5 build 415089), and my “Process Lines Containing…” dialogue looks different from the image Christopher posted. And the regex ^\s*$ does NOT work. Nor does ^\h*\$ .
What versions are y’all using?
On 13 Jan 2021, at 17:00, Tom Robinson wrote:
Cool, but it still fails when trying to remove completely empty lines in a test document.
On 2021-01-14, at 12:56, Christopher Stone <listmei...@gmail.com> wrote:
On 01/13/2021, at 17:15, Tom Robinson <barefo...@gmail.com <mailto:barefo...@gmail.com>> wrote:
Huh, I was going to say use Process Lines Containing, but search for ^$ and select Grep and Delete matched lines — saves the copying & pasting step.
But BBEdit isn’t finding the blank lines.
It works fine for me, but I had to allow for the horizontal whitespace in Howard's example.
Best Regards,

I think people might be getting differing behavior because trying with different versions of BBEdit.I’m running the latest beta (version 13.5.5 build 415089), and my “Process Lines Containing…” dialogue looks different from the image Christopher posted. And the regex ^\s*$ does NOT work. Nor does ^\h*\$ .
What versions are y’all using?

On Jan 13, 2021, at 8:22 PM, Bruce Van Allen <b...@cruzio.com> wrote:I think people might be getting differing behavior because trying with different versions of BBEdit.
I’m running the latest beta (version 13.5.5 build 415089), and my “Process Lines Containing…” dialogue looks different from the image Christopher posted. And the regex ^\s*$ does NOT work. Nor does ^\h*\$ .
What versions are y’all using?
On 01/13/2021, at 19:22, Bruce Van Allen <b...@cruzio.com <mailto:b...@cruzio.com>> wrote:
I think people might be getting differing behavior because trying with different versions of BBEdit.
I’m running the latest beta (version 13.5.5 build 415089), and my “Process Lines Containing…” dialogue looks different from the image Christopher posted. And the regex ^\s*$ does NOT work. Nor does ^\h*\$ .
What versions are y’all using?
On 13 Jan 2021, at 17:59, Christopher Stone wrote:
I'm using BBEdit 12.6.7 (412120) on my Sierra Mac and BBEdit 13.5.5 on my Mojave Mac.
Both behave the same for me and delete “empty” lines with this pattern:
[screenshot of dialogue with pattern ^\h*$]
On 13 Jan 2021, at 18:05, Neil Faiman wrote:
BBEdit 13.5.5 (415089, 64-bit Intel, sandboxed)
macOS Mojave 10.14.6
and neither "^$" nor "^\h*$" nor "^\s*$" deletes blank lines for me.
OK - I’m cc:ing this to support.
Best Regards,