Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int annabacount(string ipfind) {
- int anCount = 0;
- string ipf = ipfind;
- anCount = Regex.Matches(ipf,".123").Count;
- return annabacount(ipfind);
- }
- static void Main(string[] args)
- {
- StreamReader sr = File.OpenText("D:\0000.txt");
- string ip="";
- Regex ipr = new Regex(@"172.29.1(23|36|24|41).[0-255]{3}:2944");
- while (!sr.EndOfStream) {
- ip = sr.ReadLine();
- Match match = ipr.Match(ip);
- annabacount(match.ToString());
- Console.WriteLine(match.ToString());
- Console.WriteLine(annabacount(match.ToString()));
Add Comment
Please, Sign In to add comment