This turn out to be a way trickier challenge than expected: crafting a PHP regexp to match Twitter #hashtags. No, /#(w+)/ is not enough.
From Echofon 10:11pm Sep 10 2010 — ¶