• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

classic asp string search

Let assume we have string x = "http://www.yahoo.com/hello/index.asp"

I want to try classic asp saying

1. search the string x
2. if inside of string x has "hello" then do something

How can i do that in classic asp?
0
Webboy2008
Asked:
Webboy2008
1 Solution
 
StingRaYCommented:
<%
x = "http://www.yahoo.com/hello/index.asp"
If (Instr(x, "hello") > 0) Then
    // Do something here
End If
%>

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now