@Heisenberg:
A/B-extraction is pointless in this case, as caffeine is neither considerably acidic nor basic.
@Vesp:
Extracting coffee to obtain caffeine is indeed pointless, as the price for pure caffeine (an uncontrolled and easily available substance!) is ridiculously low. But for the sake of chemical experimentation, I would recommend to make a crude extract first by using boiling water, followed by filtration, then extraction with chloroform. That should give caffeine at a purity that is suitable for recrystallisation or (preferred) sublimation, although the latter technique demands more equipment.
Peace! Murphy