Well, can someone help me with regular expressions??
It's look, I need RE that block textBox empty. I tried everything, but I failed. So I did code something like this:
This code below work very well.
'''----------------------------------------------
Protected Sub editarNodeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles editarNodeButton.Click
Try
Dim valorText As String = editarNodeTextBox.Text
Dim espaco As Integer = Asc(" ")
Dim letra As String = Nothing
Dim caracterAnterior As Integer = 0
Dim verificacao As Boolean = True
For i As Integer = 1 To valorText.Length
letra = Mid(valorText, i, 1)
Dim caracterAsc As Integer = Asc(letra)
If caracterAsc.Equals(espaco) And caracterAnterior.Equals(espaco) Then
verificacao = False
End If
caracterAnterior = Asc(letra)
Next
If verificacao And (Not (valorText.Equals("") Or valorText.Equals(" "))) Then
dadosUsuarioTreeView.SelectedNode.Text = editarNodeTextBox.Text
Ocorrencia(1, "Ok")
Else
Ocorrencia(2, "The field is empty or there are double empty.")
End If
Catch ex As Exception
End Try
End Sub
''--------------------------------------------------------
Can someone give me solutions with RE???
Thank You.