Case sensitivity an option for blocks.

The start and end of blocks is determined by regexp. This commit now
allows configuring the case sensitivity of this regexp.