<?php $string = 'Tweet #hashtag'; preg_match("/#(\\w+)/", $string, $matches); $hash = $matches[1]; var_dump( $hash); // Outputs 'hashtag'
You have javascript disabled. You will not be able to edit any code.