comb (something) out of (something)
To remove something, such as debris or knots, from something by combing. My poor daughter cries every time I try to comb the tangles out of her hair.
comb something out of something
and comb something outto remove substances or knots and snarls from something by combing. I had to comb the gum out of her hair. It took me over an hour to comb out the gum.