regex searching for "sub word {"; balanced pattern matching to find the end of the subroutine; continue onwards;