Archived
1
0
This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SomeLab/15_8/Program.cs
2025-11-15 20:25:57 +08:00

17 lines
391 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Text.RegularExpressions;
namespace _15_8
{
internal class Program
{
static void Main(string[] args)
{
string strIn = @"~@ How are you doing? Finethanks";
string result = Regex.Replace(strIn, @"[^\w\. ?,]", "");
Console.WriteLine(strIn);
Console.WriteLine(result);
}
}
}