如何在文本文件中搜索10位数字并显示它? [英] How do I search Text File for 10 digit number and display it?

查看:127
本文介绍了如何在文本文件中搜索10位数字并显示它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助搜索文本文件并查找文本中的所有10位数字

Visual Basic



我需要基本命令或者在代码中使用什么来代表特别识别A.数字然后B.它的10位数字



到目前为止我对此表示赞同:



Dim fileReader As String

fileReader =(filepath)

TextBox1.Text =(fileReader)

解决方案

请参阅:

http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110% 29.aspx [ ^ ],

< a href =http://en.wikipedia.org/wiki/Regular_Expression> http://en.wikipedia.org/wiki/Regular_Expression [ ^ ]。



-SA

I need assistance to search through text file and find all 10 digit numbers in the text
Visual Basic

I need basic command or example of what to use in a code to specifically identify A. number then B. its 10 digit number

so far I am up to this:

Dim fileReader As String
fileReader = (filepath)
TextBox1.Text = (fileReader)

解决方案

Please see:
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx[^],
http://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx[^],
http://en.wikipedia.org/wiki/Regular_Expression[^].

—SA


这篇关于如何在文本文件中搜索10位数字并显示它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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