string str = this.textBox1.Text;
            Regex regex = new Regex("0[xX][0-9a-fA-F]{2,5}");
            MatchCollection mc = regex.Matches(str);
            foreach (Match m in mc)
            {
                str = str.Replace(m.Value, Convert.ToInt32(m.Value, 16) + "");
            }
            this.textBox1.Text = str;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-09-27
相关资源
相似解决方案