I need some help with twitter hashtag, I need to extract a certain hashtag as string variable in PHP. Until now I have this
$hash = preg_replace (\"/#(\\\\w
Here's a non Regex way to do it:
Demo
Note: This will only pickup the first hashtag in the tweet.