<% Dim strTest ' original string strTest= "welcome to codemiles" 'print string after replace Response.Write (Replace(strTest,"codemiles","CM Community")) %>
here how to find a word in a string
Code:
<% Dim strTest 'original string strTest= "codemiles community member" 'search for a word in a string strDoSearch= InStr(strTest,"codemiles") print the result of search Response.Write strDoSearch %>
_________________ M. S. Rakha, Ph.D. Queen's University Canada