Stan08

MoreRegex/1.Censorship

Jun 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.Linq;
  4. using System.Globalization;
  5. using System.Collections.Generic;
  6. using System.Text;
  7.  
  8. class MainClass
  9.  
  10. {
  11.  
  12. public static void Main(string[] args)
  13.  
  14. {
  15. string word = Console.ReadLine();
  16.  
  17. string inputReplace = Console.ReadLine();
  18.  
  19. string m = Regex.Replace(inputReplace,word,new string('*',word.Length));
  20.  
  21.  
  22. Console.WriteLine(m);
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment