-2
我有字符串线EAUE-BCS-101。 如何可以从上面的字符串中分离int int vb.net从字符串拆分数字
我已经试过Label9.Text = Regex.Match(TextBox1.Text,“/^[Az]+$/").Value this code but couldn'工作。
谢谢
我有字符串线EAUE-BCS-101。 如何可以从上面的字符串中分离int int vb.net从字符串拆分数字
我已经试过Label9.Text = Regex.Match(TextBox1.Text,“/^[Az]+$/").Value this code but couldn'工作。
谢谢
为什么不尝试使用拆分功能?类似这样的:
Label9.Text = stringText.Split("-")(2)
数字值总是最后3个字符? –
你为什么不在[Regex Tester](http://regexstorm.net/tester)中尝试一些不同的东西? – vbnet3d
格式总是 DASH DASH ?如果是这样,你可以使用'CInt(yourString.Split(“ - ”c).Last)'' –