,
(?:(?:http(?:s)?(?:\:\/\/))?(?:www\.)?(?:\w)*(?:\.[a-zA-Z]{2,4}\/?))(?!([\/a-z<\/a>])|(\'|\"))
RegExFiddle ( 14:41)
, javascript preceded by.:)
EDIT1: ...
http:
http:
https:
https:
www.abc.xy
abc.xy
EDIT2:
Regex
/((http(s)?(\:\/\/))?(www\.)?(\w)*(\.[a-zA-Z]{2,4}\/?))(?!([\/a-z<\/a>])|(\'|\"))/g
function Linkify(str) {
var newStr = str.replace(/((http(s)?(\:\/\/))?(www\.)?(\w)*(\.[a-zA-Z]{2,4}\/?))(?!([\/a-z<\/a>])|(\'|\"))/g,'<a href="$1">$1</a>');
return newStr;
}
var newData = Linkify(data);
JS-FIDDLE
EDIT 1.000.000: D
/((http(s)?(\:\/\/))?(www\.)?([\w\-\.\/])*(\.[a-zA-Z]{2,3}\/?))(?!(.*a>)|(\'|\"))/g
.
, , - 4 , . , .info, , , {2,3} {2,4}, ... - my name is.john, is.john .