Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- namespace text
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- var regex = new Regex(@"\+359([-"" ""])2\1[0-9]{3}\1[0-9]{4}\b");
- var text = Console.ReadLine();
- var matches = regex.Matches(text);
- Console.WriteLine(string.Join(", ", matches));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement