I know there is a replace UDF. Should have been more clear in my post.

Here's the case.
We have Symantec antivirus installed on our exchange server. It has some match lists with keywords in it. If a mail body or subject contains at least one of these words the entire message is blocked and put in quarantine. We also have some users receiving huge newsletters which sometimes contain one if the words from a match list in it so it gets put in quarantine when it is sort of a false match. Reading the entire newsletter to find these words is a pain and takes a lot of time. So I put together a script using your stringmatch UDF.
The problem is that these mails contain quotes and other unwanted characters that crash the script. For now I remove these by hand as also the newline (\n) so it all gets on one line and is accepted by my script. I was thinking of automating this by feeding the mail in txt format to the script. The script would then remove the quotes and new lines and stuff and then do a match against the match list words. A replace function to read the file and remove all the crap would be nice.

Now I'm thinking of it maybe there is an other way of doing this. Hmmmm...will do some testing with reading the file and the existing replace UDF.

Anyway I don’t want a refund my two cents for the replace function can stay in the bucket.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.