is there a vbs function or a combination of functions that would remove all special chars from a string; leaving just literals. What about a regex solution?
before:
"\t20 dwarfs took turns doing\n handstands on the carpet\r"
after:
"20 dwarfs took turns doing handstands on the carpet"
This is what I'm using now
-Geates
before:
"\t20 dwarfs took turns doing\n handstands on the carpet\r"
after:
"20 dwarfs took turns doing handstands on the carpet"
This is what I'm using now
Code:
function bare(str)
for i = 1 to len(str)
char = mid(str, i, 1)
if (((asc(char) >= 32) and (asc(char) <= 126)) and (asc(char) <> 92)) then
if (asc(prevChar) <> 92) then str2 = str2 & char
end if
prevChar = char
next
bare = str2
end function
-Geates