Fixes broken generator regex. still ugly...
Merge pull request #44 from kayvon/SelectLayoutView

pull