Alias URL_Puller { var %i = 1 While (%i <= $numtok(%huh,32)) { if $regex($xdid(paste_diag,20,%i).text,/((?:ftp:\/\/|https?:\/\/|www\d?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/g) { echo -s found: $regml(1) } inc %i } }