I was able to get this to work with some slight modifications.



function findURLs(){
var Msg = jQuery('#Message');
var MsgStr = Msg.val();
var Arr = MsgStr.split(" ");
for (var n = 0; n...