如何在vb.net中的字符串中子字符串 [英] How to sub string in string in vb.net
本文介绍了如何在vb.net中的字符串中子字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨...
我有一个字符串。
00AA015949
如何获得沙特尔价值。
例如:
00AA015949
1)00AA
2)015949
解决方案
您需要查看两个Microsoft文档页面:
http://msdn.microsoft.com/en-us/library/system.string.substring.aspx [ ^ ] ,
Microsoft Q209354 。
-SA
正则表达式拆分
函数 [ ^ ]可以让您有机会根据类型过滤掉字符串。
Dim strText as string =00AA015949
Dim strTex t1 as string
Dim strText2 as string
strText1 = strText.SubString(0,4)''00AA
strText2 = strText.SubString(4)''015949
Hi...
I have One string.
00AA015949
How to Get After Chartres Value.
For Eg:
00AA015949
1)00AA
2)015949
解决方案
You need to see exactly two Microsoft documentation pages:
http://msdn.microsoft.com/en-us/library/system.string.substring.aspx[^],
Microsoft Q209354.
—SA
Regex split
functions[^] can give you an opportunity to filter out strings based on type.
Dim strText as string="00AA015949" Dim strText1 as string Dim strText2 as string strText1 = strText.SubString(0,4) '' 00AA strText2 = strText.SubString(4) '' 015949
这篇关于如何在vb.net中的字符串中子字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文