111
This commit is contained in:
11
15_8/15_8.csproj
Normal file
11
15_8/15_8.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>_15_8</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
25
15_8/15_8.sln
Normal file
25
15_8/15_8.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36623.8 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "15_8", "15_8.csproj", "{F3D96B0F-364E-4EAB-9C50-8EABCE6F748E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F3D96B0F-364E-4EAB-9C50-8EABCE6F748E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F3D96B0F-364E-4EAB-9C50-8EABCE6F748E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F3D96B0F-364E-4EAB-9C50-8EABCE6F748E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F3D96B0F-364E-4EAB-9C50-8EABCE6F748E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {22C79536-29FB-4BFC-BC82-AC3EFA5DF606}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
16
15_8/Program.cs
Normal file
16
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