Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- namespace Application
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- string text = "213.123.11.0 455.121.123.123 0.0.0.0.0 asdasdad ";
- }
- Regex r = new Regex ("\b[0-255].[0-255].[0-255].[0-255]\b");
- Console.WriteLine(r.Match(text));
- Console.ReadKey ();
- }
- }
Add Comment
Please, Sign In to add comment