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(@"\b[A-Z][a-z]+ [A-Z][a-z]+\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