programming-examples/asp/More_Code_Snippets/Find a word in a stringusing InStr.asp

9 lines
222 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim strText
'here is our string
strText = "This is our sample text to be searched"
'we will look for the word sample
strSearch = InStr(strText , "sample")
'display the results
Response.Write strSearch
%>