Support comment groups in regular expressions

Fixes #35.