How do i remove empty lines from a string? I have tried some_string = some_string.gsub(/^$/, \"\");
and much more, but nothing works.
Originally
some_string = some_string.gsub(/\n/,'')
Updated
some_string = some_string.gsub(/^$\n/,'')