asp array - replace string in array

I have an array in asp

can someone help me to search for a string in the array that is an exact match (meaning if i search cat it will return cat but not categories) and replace it with another string i specify.
bottomlinemgAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sybeConnect With a Mentor Commented:

   
For i = 0 To Ubound(MyArray)
   If MyArray(i) = "cat" Then MyArray(i) = "another string"
Next 

Open in new window

0
 
kevp75Commented:
you should be able to get away with using the instr function.  I would do a binary compare though instead of a textual compare...

http://www.w3schools.com/vbscript/func_instr.asp
0
 
estheraCommented:
can someone help me write a function to do this?
0
All Courses

From novice to tech pro — start learning today.