I\'ve looked at a couple of other possible solutions on SO but didn\'t see any that were doing what I was doing.
Currently I have been able to parse a string and det
I know this has been answered, but if you need styling, here's a solution i used on a project:
The quick brown #fox jumps over the #second lazy dog
//jquery
var str = $('#result').html();
var edt = str.replace(/(^|\s)(#[a-z\d-]+)/ig, "$1$2");
$('#result2').html(edt);
//CSS
.hash_tag {color:red;}
#result {display:none;}