make a split of a combobox that contains a strig like this (xy '+ xz)' + x ' and that I fill the grid with the columns xy', xz and x the string can contain n number of letters.
Public Sub split()
Dim input As String = Me.txtfuncion.Text.ToString() & Convert.ToChar(8)
Dim pattern As String = "(y)(x)(%+)"
Dim items() As String = input.Split(pattern) 'c')
'Dim cod As String = item(0)
Dim cantidad As Integer = 0
cantidad = items.Count - 1
Try
For Each result As String In items(cantidad)
Next
Catch ex As Exception
MsgBox("ingrese una expresion algebraica")
End Try
End Sub