【跟踪的算法源码】【表白墙源码音乐】【crol循环左移源码】第二行代码源码_第二行代码源码是什么
时间:2025-02-03 14:40:53 分类:探索
1.net代码怎么获取第二行的第行代码第行代码跟踪的算法源码数字字符串
net代码怎么获取第二行的数字字符串
public static string IgetNumber(string str)
{
return System.Text.RegularExpressions.Regex.Replace(str, @"[^\d{ 2}-]*", "");
}
public static void Main()
{
string a=IgetNumber("武汉房权证字号第-号");
string b=IgetNumber("武汉房权证字号第号");
Console.WriteLine(a);
Console.WriteLine(b);
}