Memory extraction spell

Snape pulled out his wand from an inside pocket of his robes and Harry tensed in his chair, but Snape merely raised the wand to his temple and placed its tip into the greasy roots of his hair. When he withdrew it, some silvery substance came away, stretching from temple to wand like a thick gossameā€¦