optimise files
This commit is contained in:
16
CS/15_8/Program.cs
Normal file
16
CS/15_8/Program.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace _15_8
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string strIn = @"~@ How are you doing? Fine,thanks!";
|
||||
string result = Regex.Replace(strIn, @"[^\w\. ?,]", "");
|
||||
Console.WriteLine(strIn);
|
||||
Console.WriteLine(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user