fork download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6.  
  7. Dim input As String = "Contacts.Address2 as `Contact Address2` Contacts.ContactID CONCAT(Contacts.FirstName;;' ';;Contacts.LastName) as `Contact`"
  8.  
  9. For Each m As Match In Regex.Matches(input, "(\w+)\.(\w+)")
  10. Console.WriteLine(
  11. String.Join(", ",
  12. m.Groups(1).Value,
  13. m.Groups(2).Value
  14. ))
  15. Next
  16.  
  17. End Sub
  18. End Class
Success #stdin #stdout 0.08s 24528KB
stdin
Standard input is empty
stdout
Contacts, Address2
Contacts, ContactID
Contacts, FirstName
Contacts, LastName