Better than grep

In the process of writing Unlearning SQL , I had a need to extract SQL blocks from Python programs. Of course, I tried grep . It wasn't ideal. Note Book is available here: https://www.amazon.com/dp/B0DDMFMXNW https://www.lulu.com/shop/steven-lott/unlearning-sql/paperback/product-yvnm8zn.html?page=1&pageSize …