letter of the law
The precise wording rather than the spirit or intent. For example, Since it was the first time he'd broken the rules, the school decided to ignore the letter of the law and just give him a warning. [Late 1500s]
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.