在控制台应用程序中解析字符串 [英] To parse a string in console application

查看:61
本文介绍了在控制台应用程序中解析字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以C#语言为例,例如,calcuature

in language C# for example in calcuature

推荐答案

在这里看看..
http://www.techrepublic.com/article/easily-parse-string- values-with-net/6030362 [ ^ ]
http://mantascode.com/?p=43 [
Take a look here..
http://www.techrepublic.com/article/easily-parse-string-values-with-net/6030362[^]
http://mantascode.com/?p=43[^]


用于解析字符串的强大工具是Regex类.您可以在CodeProject上找到以下文章:"30分钟Regex教程" [^ ].
A powerful tool for parsing string is the Regex class. You may find, here at CodeProject, the article: "The 30 Minute Regex Tutorial"[^].


尝试使用System.Text名称空间的此功能

Convert.ToString()
String.Format()
[基本类型] .ToString()


如果有帮助,请标记为答案.

谢谢
纳恩·查瓦达(Nayan Chavada)
Try this functions of System.Text namespace

Convert.ToString()
String.Format()
[basic type].ToString()


Please mark as answer if it is helpful.

Thanks
Nayan Chavada


这篇关于在控制台应用程序中解析字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆