I want to strip off the # from twitter hash-tags, so:
Input: I love #winter and #ice-skating
Output: I love winter and ice-skating
I thought this would do the trick, but it doesn't:
$tweet = preg_replace('/#[^\s]*/i', '${1}', $tweet);
Could somebody explain to me why not? What should I change?