Support using regular expressions in heredocs/nowdocs

This can be enabled by using `REGEX` as the delimiting word. Fixes #46.