ma con l'ultima modifica dovrebbe andare anche senza mettere lo spazio prima del
:master:
codice:
Function LinkUrl(stringa)
temp=""
Set re = new RegExp
re.Pattern = "((http://[^ \s<]+)|(www\.[^ \s<]+))"
re.Multiline = true
re.Global = true
re.IgnoreCase = true
temp = re.Replace(stringa,"$1")
temp = Replace(temp,"href=""www","href=""http://www")
LinkUrl = temp
End Function
prova = "questa è una prova. www.google.it" & vbCrLf & " e http://www.altavista.it sono motori di ricerca"
Response.Write prova & "
"
Response.Write LinkUrl(Replace(prova,vbCrLf,"
"))
a me questo funziona... mi restituisce