How to replace plain URLs with links?
First off, rolling your own regexp to parse URLs is a terrible idea. You must imagine this is a common enough problem that someone has written, debugged and tested a library for it, according to the RFCs. URIs are complex – check out the code for URL parsing in Node.js and the Wikipedia page on … Read more