var theText='Ohhhh #ohhh #oh #ohh #ohhhh ohhh oh'
what I want to achieve is for each "oh" with a pound/hashtag would be replaced with a link.
What I want to achieve:
"Ohhh <a href='/'>#ohhh</a>
<a href='/'>#oh</a>
<a href='/'>#ohh</a>
<a href='/'>#ohhhh</a>
ohhh oh