简体   繁体   English

C# 形式的匹配和正则表达式?

[英]Match and RegEx in C# form?

Can RegEx and Match be used in a Windows Form?可以在 Windows 表格中使用 RegEx 和 Match 吗? I know they work in the console applications...我知道他们在控制台应用程序中工作......

I'm trying to convert a Console app to a Windows Form Application.我正在尝试将控制台应用程序转换为 Windows 表单应用程序。

RegEx can be used in anything that can access the.Net Framework. RegEx可用于任何可以访问 .Net 框架的东西。 WinForms, Console, WPF, code-behind in an ASP.Net website, etc. WinForms、控制台、WPF、ASP.Net 网站中的代码隐藏等。

You could even create an instance of the RegEx class in ColdFusion using .Net integration (crazy, I know)!您甚至可以使用.Net 集成在 ColdFusion 中创建RegEx class 的实例(我知道这很疯狂)!

Yes, most .NET library functions can be used in any type of application.是的,大多数 .NET 库函数可用于任何类型的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM