日期:2014-05-17  浏览次数:20961 次

限制特殊字符问题??
Function   ReplaceBadWord(g_word)
    g_word=Replace(g_word, "   ", " ")
    g_word=Replace(g_word, ", ", " ")
    g_word=Replace(g_word, " < ", " ")
    g_word=Replace(g_word, ". ", " ")
    g_word=Replace(g_word, "> ", " ")
    g_word=Replace(g_word, "/ ", " ")
    g_word=Replace(g_word, "? ", " ")
    g_word=Replace(g_word, "; ", " ")
    g_word=Replace(g_word, ": ", " ")
    g_word=Replace(g_word, " ' ", " ")
    'g_word=Replace(g_word, "   "   ", " ")
    g_word=Replace(g_word, "[ ", " ")
    g_word=Replace(g_word, "] ", " ")
    g_word=Replace(g_word, "{ ", " ")
    g_word=Replace(g_word, "} ", " ")
    g_word=Replace(g_word, "\ ", " ")
    g_word=Replace(g_word, "| ", " ")
    g_word=Replace(g_word, "= ", " ")
    g_word=Replace(g_word, "+ ", " ")
    g_word=Replace(g_word, "- ", " ")
    g_word=Replace(g_word, "_ ", " ")
    g_word=Replace(g_word, ") ", " ")
    g_word=Replace(g_word, "( ", " ")
    g_word=Replace(g_word, "* ", " ")
    g_word=Replace(g_word, "^ ", " ")
    g_word=Replace(g_word, "% ", " ")
    g_word=Replace(g_word, "$ ", " ")
    g_word=Replace(g_word, "@ ", " ")
    g_word=Replace(g_word, "! ", " ")
    g_word=Replace(g_word, "` ", " ")
    g_word=Replace(g_word, "~ ", " ")    
   

    g_word=Replace(g_word, ", ", " ")
    g_word=Replace(g_word, "《 ", " ")
    g_word=Replace(g_word, "。 ", " ")
    g_word=Replace(g_word, "》 ", " ")
    g_word=Replace(g_word, "、 ", " ")
    g_word=Replace(g_word, "? ", " ")
    g_word=Replace(g_word, "; ", " ")
    g_word=Replace(g_word, ": ", " ")
    g_word=Replace(g_word, "‘ ", " ")
    g_word=Replace(g_word, "“ ", " ")
    g_word=Replace(g_word, "〔 ", " ")
    g_word=Replace(g_word, "〕 ", " ")
    g_word=Replace(g_word, "{ ", " ")
    g_word=Replace(g_word, "} ", " ")
    g_word=Replace(g_word, "、 ", " ")
    g_word=Replace(g_word, "| ", " ")
    g_word=Replace(g_word, "= ", " ")
    g_word=Replace(g_word, "+ ", " ")
    g_word=Replace(g_word, "- ", " ")