- knows it inside and out
To know something "inside out" or "inside and out"?To know something "inside out" or "inside and out"?
- knows it from A to Z
http://dictionary.cambridge.org/us/dictionary/english/from-a-to-z
- knows it backwards and forwards
http://idioms.thefreedictionary.com/know+backwards+and+forwards