Need to take a string in vb and split it. Also need to look through the two returned values and return the value which contains “domain1.com”. Pipelines are the delimiter.
txtEmailFrom.Text = "john@huno.com|james@domain1.com"
Dim brokened() As String
brokened = Split(txtEmailFrom.Text, "|")
Dont know where to go from here…
I am writing this without IDE & this could be VB6 style.
Hopefully, it should give you an idea of converting to VB.net
EDIT: Ofcourse, it will be better to add checks for array bounds before this line
if emailSplit(1) = ....