 Letter and spirit of the law

The letter of the law versus the spirit of the law is an idiomatic antithesis.When one obeys the letter of the law but not the spirit, one is obeying the literal interpretation of the words (the "letter") of the law, but not necessarily the "intent" of those who wrote the law.