RsD0p9BK
2/27/2017 - 5:08 AM

remove_hashtag.php

// regex to remove hashtag from string

function remove_hashtag($text) {
  return preg_replace('/#\S+ */', '', $text);
}

// http://stackoverflow.com/questions/26478194/regex-to-remove-hashtag-from-string