The solution provided by wspf does what you describe. The code you are using is not what wspf provided. Your sample of required output in your response to that post looks exactly like the output from the provided code. Is there a difference that I am not seeing?
update Sorry, I didn't read Corion's post before posting the above, which is both redundant and inferior.
In reply to Re^3: Check for string in array and substitue
by ig
in thread Check for string in array and substitue
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |