I have a var that has a string with a series of words, some of which have hashtags, for example:
var words = "#hashtagged no hashtag #antoherhashtag";
I want to save each hashtagged word into an array, sort of like:
var tagslistarr = words.split(' ');
But I'm not sure how to get characters surrounded by both # and a space.
Is there a special way to do this? Are there any ASCII characters I should use to identify this?
javascript jquery string arrays
Meltingdog
source share