As Metalman stated, you have to mean that you are sorry for the sins you commited....repentance has to be pure of heart.

And he also stated, that God the perfect Judge knows everything, and that is true.

And as far as the rules, they are guide lines, in life...God also gave us free will to make our own choices....