Fix regexps so they are anchored to start/end of string instead of start/end of line
Merge pull request #2 from timcraft/master

Fix regexp anchoring