Forum Moderators: open
<%
Function LinkURLs(byVal strIn)
dim re, sOut
set re = New RegExp
re.global = true
re.ignorecase = true
're.multiline = true
re.pattern = _
"((mailto\:¦(news¦(ht¦f)tp(s?))\://){1}\S+)"
sOut = re.replace( strIn, _
"<A HREF=""$1"" TARGET=""_top"">$1</A>")set re = Nothing
LinkURLs = sOut
End Function
%>
I'm looking for an amendment, new function, or better way to display anchor text instead of the raw URL. Like forums' use of "{url=www.example.com}Anchor{/url}".
<%
Function LinkURLs(byVal strIn)
dim re, sOut
set re = New RegExp
re.global = true
re.ignorecase = true
're.multiline = true
re.pattern = _
"((mailto\:¦(news¦(ht¦f)tp(s?))\://){1}\S+)"
sOut = re.replace( strIn, _
"<A HREF=""$1"">$1</A>")set re = Nothing
LinkURLs = sOut
End Function
%>
Then for the product desc. text:
<a href="page.htm">Anchor Text</a>