Imports System.Text.RegularExpressions
Imports System.Collections.Generic
Public Function ExtrairBlocos(ByVal texto As String) As List(Of String)
Dim blocos As List(Of String)
blocos = Regex.Split(texto, "(""[^""]*""|\s+)").ToList()
blocos.RemoveAll(Function(bloco) String.IsNullOrWhiteSpace(bloco))
Dim texto As String = "if ""esse campo tem espaços"" = true"
Dim blocos As New List(Of String)
blocos = ExtrairBlocos(texto)
For Each bloco As String In blocos
Console.WriteLine("{0}", bloco)