I am working on a Twitter program and am stuck on how to replace words with html elements. For example:
Replace:
Hello #World, This is a Tweet!
With: Hello <a href="">#World</a>, this is a Tweet!
I know that you can use regex in replace() but I am unsure of how to reference to the matched string after in the second argument of replace()
Thank you!