从开头的文本框中删除字符

时间:2019-09-23 08:29:37

标签: vb.net

我想从头开始删除字符:

If TxtNumberListScan.Text.Contains(",") Then
    TxtNumberListScan.Text = TxtNumberListScan.Text.Replace(",", " ")
End If

如何应用该代码以及如何用于我想要的代码?

Textbox1:Text =

2019-09-22 / 22:40  4, 9, 11, 14, 15, 24, 28, 30, 31, 32, 43, 46, 56, 61, 64, 65, 67, 68, 71, 78
    2019-09-22 / 15:00  2, 8, 11, 15, 17, 25, 33, 34, 44, 48, 49, 50, 52, 60, 61, 62, 69, 70, 74, 77
    2019-09-21 / 22:40  1, 4, 8, 9, 10, 21, 23, 24, 25, 32, 40, 43, 52, 54, 55, 61, 68, 72, 73, 75
    2019-09-21 / 15:00  5, 6, 12, 13, 18, 24, 26, 28, 29, 32, 40, 46, 50, 52, 56, 62, 63, 65, 70, 74

输出:我期望什么:Textbox2.Text =

4, 9, 11, 14, 15, 24, 28, 30, 31, 32, 43, 46, 56, 61, 64, 65, 67, 68, 71, 78
2, 8, 11, 15, 17, 25, 33, 34, 44, 48, 49, 50, 52, 60, 61, 62, 69, 70, 74, 77
1, 4, 8, 9, 10, 21, 23, 24, 25, 32, 40, 43, 52, 54, 55, 61, 68, 72, 73, 75
5, 6, 12, 13, 18, 24, 26, 28, 29, 32, 40, 46, 50, 52, 56, 62, 63, 65, 70, 74

0 个答案:

没有答案