Got an odd attachment name. The original data is
which is quoted printable encoded ISO text, which is fine. At the end of the string, however, there is a \x00 character. Which makes code like
dim theAttachment as FolderItem = GetFolderItem(name) NameExtension = getExtensionFromFile(Name)
fail with an NOE. So I thought I'd simply get rid of the character. But how do I do this? A replace with "\x00" failed. Same for a more general regex:
dim theRegex as new RegEx theRegex.options.ReplaceAllMatches = true theRegex.searchpattern = "\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x07|\x08|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E" theRegex.replacementPattern = "" theFilename = theRegex.replace(theFilename)
What am I missing here?