ADim p As String = "First Name: (?<firstName>.*$)\n" + _
"Last Name: (?<lastName>.*$)\n" + _
"Address: (?<address>.*$)\n" + _
"City: (?<city>.*$)\n" + _
"State: (?<state>.*$)\n" + _
"Zip: (?<zip>.*$)"
Dim m As Match = Regex.Match(s, p, RegexOptions.Multiline)
Dim fullName As String = m.Groups("firstName").ToString + " " + _
m.Groups("lastName").ToString
Dim address As String = m.Groups("address").ToString
Dim city As String = m.Groups("city").ToString
Dim state As String = m.Groups("state").ToString
Dim zip As String = m.Groups("zip").ToString
BDim p As String = "First Name: (?<firstName>.*$)\n" + _
"Last Name: (?<lastName>.*$)\n" + _
"Address: (?<address>.*$)\n" + _
"City: (?<city>.*$)\n" + _
"State: (?<state>.*$)\n" + _
"Zip: (?<zip>.*$)"
Dim m As Match = Regex.Match(s, p)
Dim fullName As String = m.Groups("firstName").ToString + " " + _
m.Groups("lastName").ToString
Dim address As String = m.Groups("address").ToString
Dim city As String = m.Groups("city").ToString
Dim state As String = m.Groups("state").ToString
Dim zip As String = m.Groups("zip").ToString
CDim p As String = "First Name: (?<firstName>.*$)\n" + _
"Last Name: (?<lastName>.*$)\n" + _
"Address: (?<address>.*$)\n" + _
"City: (?<city>.*$)\n" + _
"State: (?<state>.*$)\n" + _
"Zip: (?<zip>.*$)"
Dim m As Match = Regex.Match(s, p, RegexOptions.Multiline)
Dim fullName As String = m.Groups("<firstName>").ToString + " " + _
m.Groups("<lastName>").ToString
Dim address As String = m.Groups("<address>").ToString
Dim city As String = m.Groups("<city>").ToString
Dim state As String = m.Groups("<state>").ToString
Dim zip As String = m.Groups("<zip>").ToString
DDim p As String = "First Name: (?<firstName>.*$)\n" + _
"Last Name: (?<lastName>.*$)\n" + _
"Address: (?<address>.*$)\n" + _
"City: (?<city>.*$)\n" + _
"State: (?<state>.*$)\n" + _
"Zip: (?<zip>.*$)"
Dim m As Match = Regex.Match(s, p)
Dim fullName As String = m.Groups("<firstName>").ToString + " " + _
m.Groups("<lastName>").ToString
Dim address As String = m.Groups("<address>").ToString
Dim city As String = m.Groups("<city>").ToString
Dim state As String = m.Groups("<state>").ToString
Dim zip As String = m.Groups("<zip>").ToString