I\'m very new at regex. I\'m trying to match any word that starts with \'#\' in a string that contains no newlines (content was already split at newlines).
Example (
Try this:
var matches = string.match(/#\w+/g);