Support using regular expressions in heredocs/nowdocs

This can be enabled by using `REGEX` as the delimiting word. Fixes #46.
Merge remote-tracking branch 'upstream/master'