Regex

来源:互联网 发布:大熊猫脾气 知乎 编辑:程序博客网 时间:2024/05/18 03:15

将不满足条件的字符去除

示例: 提取16进制的字符

str = Regex.Replace(str,   @"[^a-fA-F0-9]", "");



0 0