Microsoft VBScript runtime error '800a000d'

Type mismatch: 'regEx.replace'

/dbm/functions.asp, line 1036