FindNumberInString 1.0.0

NumberHunter.Find(inst)

There is a newer version of this package available.
See the version list below for details.
Install-Package FindNumberInString -Version 1.0.0
dotnet add package FindNumberInString --version 1.0.0
<PackageReference Include="FindNumberInString" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FindNumberInString --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
namespace TextConsole
{
	class Program
	{
		static void Main(string[] args)
		{

			string inst = @"转入 -1381.90 
转入 -345 0.89 -.9
转入 1040
转入 -1381.102
转入 3000
转入 -3300
转入 1200
转入 3454
转入 0(说明: 3007转账错误, 已经转回)
转入 5004
转入 4991
转入 4994
转入 4994
转入 9999
转入 9999
转入 4994
转入 4994
转入 9907
转入 10000
转入 9999
转入 5600
取出 121$ 实付681元(25$手续费)
=====================
投入 10576 取出(考虑损耗) 681
应结余 99895
实际结余  101877
=====================
";
			var dbs=NumberHunter.Find(inst);

			Console.WriteLine($"找到字符串{dbs.Length}个");
			foreach (var item in dbs)
			{
				Console.WriteLine(item);
			}
			Console.ReadLine();
		}
	}
}
namespace TextConsole
{
	class Program
	{
		static void Main(string[] args)
		{

			string inst = @"转入 -1381.90 
转入 -345 0.89 -.9
转入 1040
转入 -1381.102
转入 3000
转入 -3300
转入 1200
转入 3454
转入 0(说明: 3007转账错误, 已经转回)
转入 5004
转入 4991
转入 4994
转入 4994
转入 9999
转入 9999
转入 4994
转入 4994
转入 9907
转入 10000
转入 9999
转入 5600
取出 121$ 实付681元(25$手续费)
=====================
投入 10576 取出(考虑损耗) 681
应结余 99895
实际结余  101877
=====================
";
			var dbs=NumberHunter.Find(inst);

			Console.WriteLine($"找到字符串{dbs.Length}个");
			foreach (var item in dbs)
			{
				Console.WriteLine(item);
			}
			Console.ReadLine();
		}
	}
}

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 102 9/9/2019
1.0.0 77 9/8/2019