Click to See Complete Forum and Search --> : ASP Search/Replace Array Help Please


theflyingminst
09-02-2008, 07:33 PM
Hi I am running an ASP search replace scheme and I wanted to know if it's possible to make an array of numbers from 1-9 and have the script check to see if those numbers were changed in the search replace. If not, it would put a character by it, say like a question mark..

Ex:

Array: 1,2,3,4,5,6,7,8,9 if not replace="?"

Search and replace:

Replace " 1 " with " 6 ", Replace " 5 " with " 7 "

Search and replace query: 1 2 56 7

Output: 6 2 3 4?6 7

Thanks!