I wonder if your pattern should just go as far as the first square bracket as it otherwise will not match the line that you are dropping. As it is now I would expect this example to form a single line and be dropped. If you output the lines you want to drop to a file instead it might be easier to see what is dropped and figure out why.