Fix on regexp.

This changes the on regexp to need either a space or a line beginning
when matching.
Fixes #27.
Merge pull request #28 from Dignifiedquire/fix-27

Fix on regexp.