Don't match eof with dot.
Move regexp tests to a package-scoped variable.

If I can figure out how to correctly implement Regexp.Next,
I'll want to reuse these.