help to delete some blank lines

hello to everybody,
i have some documents with up to 10K lines like this one:
text001 text002 https://www.486905968046wdGtqQT09/746627z https://www.ajjdhflfkgwdGteds/746627z https://www.erlkjglegio45gio8/746627z text003 text004 https://www.lSHM3UmJ2MW1rcEh3QT13/19828277z text005 text006 https://www.tVbkQxTmd2a0lYMVc28193/1quehhsrar https://www.kfjdhdh7742222/1quehhsrar https://www.949iwjdjnnssbabqq/1quehhsrar
i need to delete blank empty lines only on https lines, like this:
text001 text002 https://www.486905968046wdGtqQT09/746627z https://www.ajjdhflfkgwdGteds/746627z https://www.erlkjglegio45gio8/746627z text003 text004 https://www.lSHM3UmJ2MW1rcEh3QT13/19828277z text005 text006 https://www.tVbkQxTmd2a0lYMVc28193/1quehhsrar https://www.kfjdhdh7742222/1quehhsrar https://www.949iwjdjnnssbabqq/1quehhsrar
how to?
or another solution: delete all blank lines, but then add new blank lines only between https link and text00n 
Hello, @namx3249 and All,
As usual, not difficult with the appropriate regex expression
So, starting with your INPUT text, where I added a leading TAB char before the first part of your text :
text001 text002 https://www.486905968046wdGtqQT09/746627z https://www.ajjdhflfkgwdGteds/746627z https://www.erlkjglegio45gio8/746627z text003 text004 https://www.lSHM3UmJ2MW1rcEh3QT13/19828277z text005 text006 https://www.tVbkQxTmd2a0lYMVc28193/1quehhsrar https://www.kfjdhdh7742222/1quehhsrar https://www.949iwjdjnnssbabqq/1quehhsrar
the following regex S/R :
SEARCH
(?s)^(.+\R)\R+(?=[\t\x20]*http)
REPLACE
\1
Will produce your expected OUTPUT text :
text001 text002 https://www.486905968046wdGtqQT09/746627z https://www.ajjdhflfkgwdGteds/746627z https://www.erlkjglegio45gio8/746627z text003 text004 https://www.lSHM3UmJ2MW1rcEh3QT13/19828277z text005 text006 https://www.tVbkQxTmd2a0lYMVc28193/1quehhsrar https://www.kfjdhdh7742222/1quehhsrar https://www.949iwjdjnnssbabqq/1quehhsrar
Best Regards,
guy038

oh guy038, as usual your regex work fine!
thanks you so much. you saved my dayonly don’t understand why have you add a leading TAB on first block … it work fine also without this …

Hi, @namx3249 and All,
Ah…, I simply added a leading
TAB
char before each line of the first part to show you that the regex S/R could also handle this case !But, If you’re sure that leading blank chars won’t appear in your file, you can simplify the regex S/R as below, to get a similar OUTPUT :
SEARCH
(?s)^(.+\R)\R+(?=http)
REPLACE
\1
BR
guy038