Untitled
By: a guest | Oct 10th, 2008 | Syntax:
ASP | Size: 0.69 KB | Hits: 420 | Expires: Never
<%
Set regEx = New RegExp
regEx.Global = True
regEx.IgnoreCase = True
sourcestring = "<span style='font-size: 1.25em;'> and </span>"
regEx.Pattern = "<span style='font-size: 1.25em;'>([\S\s]*?)</span>"
Set Matches = regEx.Execute(sourcestring)
For z = 0 to Matches.Count-1
results = results & "Matches(" & z & ") = " & chr(34) & Server.HTMLEncode(Matches(z)) & chr(34) & chr(13)
For zz = 0 to Matches(z).SubMatches.Count-1
results = results & "Matches(" & z & ").SubMatches(" & zz & ") = " & chr(34) & Server.HTMLEncode(Matches(z).SubMatches(zz)) & chr(34) & chr(13)
next
results=Left(results,Len(results)-1) & chr(13)
next
Response.Write "<pre>" & results
%>