Home
About
Contact
Categories
Classic ASP (28 - Sub-Categories)
CSS (1 - Sub-Category)
JavaScript (4 - Sub-Categories)
Databases (22 - Sub-Categories)
ASP.NET (23 - Sub-Categories)
Delphi (5 - Sub-Categories)
Windows Server Core (3 - Sub-Categories)
VMWare (1 - Sub-Category)
Code Editing Tools (2 - Sub-Categories)
Linux (2 - Sub-Categories)
Dell Servers (15 - Sub-Categories)
Bug Reports
(Bugs Fixed
New CFFCS Coding Source is still in Beta
Please report any errors to the [Contact] page. Thank you.
Classic ASP (28)
CSS (1)
JavaScript (4)
Databases (22)
ASP.NET (23)
Delphi (5)
Windows Server Core (3)
VMWare (1)
Code Editing Tools (2)
Linux (2)
Dell Servers (15)
Resources
[View The Source Code For This Project]
Format SQL Script
Classic ASP
Forms
ASP Classic Linkify - Convert text links into Clickable URLs
Live Editing Disabled for Server-Side Example
HTML
<textarea name="MyText1" cols="50" rows="4">This is the link to Coding Source: https://www.cffcs.com
And this is the link to Dark Effects Production: https://www.darkeffects.com</textarea>
Classic ASP
Linkify
<% Function Linkify(Text) Dim regEx, Match, Matches, patternURLs, patternAnchors, lCount, anchorCount, replacements patternURLs = "((http|ftp|https)(:\/\/[\w\-_]+)((\.[\w\-_]+)+)([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)" patternAnchors = "
]*?>.*?
" Set replacements=Server.CreateObject("Scripting.Dictionary") ' Create the regular expression. Set regEx = New RegExp regEx.Pattern = patternAnchors regEx.IgnoreCase = True regEx.Global = True ' Do the search for anchors. Set Matches = regEx.Execute(Text) lCount = 0 ' Iterate through the existing anchors and replace with a placeholder For Each Match in Matches key = "<#" & lCount & "#>" replacements.Add key, Match.Value Text = Replace(Text,Cstr(Match.Value),key) lCount = lCount+1 Next anchorCount = lCount ' we now search for URls regEx.Pattern = patternURLs ' create anchors from URLs Text = regEx.Replace(Text, "
$1
") ' put back the originally existing anchors For lCount = 0 To anchorCount-1 key = "<#" & lCount & "#>" Text = Replace(Text,key, replacements.Item(key)) Next Linkify = Text End Function %>
Preview
Tags
Linkify in Classic ASP
Linkify() around your requested form element