What would be a good way to “auto link” words with @ in front of them like twitter does?
For example auto_link_user(‘Hello @matt please send file to harry@gmail.com’) would return
‘Hello @matt please send file to harry@gmail.com’
I’m trying to do exactly this in Ruby http://www.ideone.com/aGklx
Using String#gsub