1、过滤敏感字符

1、

  public static String RemoveSpecialCharacter(String hexData)
  {
      return Regex.Replace(hexData, "[ \r \n \t \\[ \\] \\^ \\-_*×――(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]", "").ToUpper();
  }

 

posted @ 2019-07-08 11:22  反骨少年  阅读(303)  评论(0)    收藏  举报