Recently I have been working on upgrading some libraries.
This has involved some complex grep scripts.

The ripgrep tool has proved to be very effective with multi-line queries.
In fact it was fast multiline than the standard grep scripts that we had been using.