Jesus takes us to the very heart of the Law, the substance on which all other laws depend, namely love of God and love of neighbor. And if one does not keep these two commandments, then all the other laws have no meaning.
If we do keep these two commandments, loving God alone above all else and our neighbor as ourselves, we will be keeping all the Law.
Whatever we do, if to the question - "Is it based on love of God and love of neighbor?" - we can answer, "Yes," then we can be assured that our life has meaning because it respects love, the root of all human life.
Meditation by Father Aquinas.