Use start and end of string rather than line matching in regexes.
Merge pull request #317 from Shopify/string-anchors

Use start and end of string rather than line matching in regexes.