How could I achieve something like this?
example_input = "hi, this is example #input, it has a few #different things going #on. #question"
output ===> [input, different, on, question]
This is what I have so far:
text.match(/\#.+?\s+/g)
I’ve be able to get to isolation when followed by white space but I’m not sure how to adapt for , ' ' . or string end / new line
\b for boundary characters
for spaces, commas, and string ends
use ‘\s’, ‘,’ and ‘$’
here is a list of special characters you can use (read under special characters):
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp