I have a var that has a string with a series of words, some of which have hashtags, eg:
var words = "#hashtagged no hashtag #antoherhashtag";
I want to save each hashtagged word into an array, kind of like:
var tagslistarr = words.split(' ');
But I am unsure of how to get the characters surrounded by both the # and the space.
Is there a special way of doing this? Is there some ASCII characters I am meant to use to identify this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With