When Code Meets Regulation: