Guest User

Untitled

a guest
Jul 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public static int annabacount(string ipfind) {
  2.  
  3. int anCount = 0;
  4. string ipf = ipfind;
  5. anCount = Regex.Matches(ipf,".123").Count;
  6.  
  7. return annabacount(ipfind);
  8. }
  9.  
  10. static void Main(string[] args)
  11. {
  12. StreamReader sr = File.OpenText("D:\0000.txt");
  13. string ip="";
  14. Regex ipr = new Regex(@"172.29.1(23|36|24|41).[0-255]{3}:2944");
  15.  
  16.  
  17.  
  18. while (!sr.EndOfStream) {
  19. ip = sr.ReadLine();
  20.  
  21. Match match = ipr.Match(ip);
  22. annabacount(match.ToString());
  23.  
  24. Console.WriteLine(match.ToString());
  25. Console.WriteLine(annabacount(match.ToString()));
Add Comment
Please, Sign In to add comment