know something inside out
know something inside out {v. phr.}
To be extremely well conversant with something; be an expert in; have thorough knowledge of.
Tom knows the stock market inside out.
Categories:
Source: A Dictionary of American Idioms