schema and specification updates for regex issues

Contains fixes for issues #42, #43. #45. and #60
Merge pull request #151 from drothenberg/regex_issues

fixes #42, #43. #45. and #60