I need some help with regular expressions in JavaScript.
I have the following string.
var str = "SOme TEXT #extract1$ Some more text #extract2$ much more text #extract3$ some junk";
I want to extract all the text between #
and $
into an array or object.
Final output would be:
var result = [extract1,extract2,extract3]
extract1, extract2,extract3 can contain any characters like _,@,&,*