datacolchanged事件
If e.DataCol.name = "第一列" Then
Dim str As String = e.DataRow("第一列")
Dim mc = System.Text.RegularExpressions.Regex.Matches(str, "[0-9]{4}-[0-9]+-[0-9]+")
If mc.count > 0 Then
e.DataRow("第二列") = mc(0).value
Else
e.DataRow("第二列") = Nothing
End If
mc = System.Text.RegularExpressions.Regex.Matches(str, "[0-9]{15,}")
If mc.count > 0 Then
e.DataRow("第三列") = mc(0).value
Else
e.DataRow("第三列") = Nothing
End If
mc = System.Text.RegularExpressions.Regex.Matches(str, "[0-9,. ]+(?=元)")
If mc.count > 0 Then
e.DataRow("第四列") = mc(0).value
Else
e.DataRow("第四列") = Nothing
End If
End If