Use correct regex for block names

fixes #1
Merge pull request #2 from airtonix/master

Use correct regex for block names