Fixes #127: Optional string regex-based rule throws if key is missing
Modify to conform to project code conventions
Merge pull request #129 from danielb2/master

Fixes #127: Optional string regex-based rule throws if key is missing