Know something backwards and forwards (or inside out)

-biti stručnjak u nečemu

Jeremy knows horse racing inside out.