I'm trying to substitute a multiline block using perl command line.
the text is the following:

```
@LNCaP.2622 GAPC:1:1:4519:1350 length=76
TTTCCATTGCAGGTTTTAAAGTGGAGATTCTGAAGGGGAAAATAGGCACTGTCAGAACAAAGCTACCTGGAAACAG
+LNCaP.2622 GAPC:1:1:4519:1350 length=76
DD@:BBBBDDD@D:B::=:6:(6//;589444004':839>>2;;:':>>:7B:><B<B#################
@LNCaP.2623 GAPC:1:1:4767:1343 length=76

+LNCaP.2623 GAPC:1:1:4767:1343 length=76

@LNCaP.2624 GAPC:1:1:4794:1349 length=76

```

and I tried to run the following regex:

```
perl -pe "s/^@.*\n\s*\n+//mg" test.txt

```

hoping to get the following output:

```
@LNCaP.2622 GAPC:1:1:4519:1350 length=76
TTTCCATTGCAGGTTTTAAAGTGGAGATTCTGAAGGGGAAAATAGGCACTGTCAGAACAAAGCTACCTGGAAACAG
+LNCaP.2622 GAPC:1:1:4519:1350 length=76
DD@:BBBBDDD@D:B::=:6:(6//;589444004':839>>2;;:':>>:7B:><B<B#################
@LNCaP.2624 GAPC:1:1:4794:1349 length=76

```

the regex `^@.*\n\s*\n\+.*\n\s*\n` recognize 4 lines I want to delete on regex101.com using the text above, however, when I run the command from my shell, the output is unchanged :(

I can't use the line number since this is an extract from a much much bigger file, which means that this has to be applied to all the 4 row instances that match that pattern.

any idea what am I doing wrong?

thanks