I'm using:
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
return text.replace(exp,"<a href='$1' target='internet'>$1</a>");
to turn, for example http://www.example.com into a clickable link. This works well!
Does anyone know how to expand this expression to capture also www.example.com (i.e without http://)?
http://www.example.comandwww.example.comto<a>tags.