Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- class Censorship
- {
- static void Main(string[] args)
- {
- string bannedWord = Console.ReadLine();
- string text = Regex.Replace(Console.ReadLine(), bannedWord, new string('*', bannedWord.Length));
- Console.WriteLine(text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement