Make regexes unambiguous (They were matching at anywhere in the line in ruby 1.9.3)