Not sure why my RedGex expression not working, I'm trying to ommit match and next lines
[example.com]
10.0.0.1
10.0.0.2
[example.net]
10.0.0.10
10.0.0.20
Desired output
[example.net]
10.0.0.10
10.0.0.20
Here is what I have tried so far, but it matches more lines than desired
sed -e '/(\[example.com\])(.*\n)+/d'