Classic ASP
Classic ASP
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set sb = Server.CreateObject("Chilkat.StringBuilder")
success = sb.Append("<company><name>Chilkat Software</name></company>")
' For example, to get the company name in the string above...
companyName = sb.GetBetween("<name>","</name>")
Response.Write "<pre>" & Server.HTMLEncode( "Company Name = " & companyName) & "</pre>"
%>
</body>
</html>