>I am looking for a VB function that evaluates a string and replaces all occurances of a specified string with another specified string.
>
>In VFP it is lcNewString =
>STRTRAN(cSearched,cSearchFor [, cReplacement] [, nStartOccurrence] [, nNumberOfOccurrences])
Look at using the native RegExp object; it can do pattern search and replace operations pretty easily.