I'm a total beginner in the VB language and I have a string in the format:
Smith, Alex (firstname.lastname@example.org)
I'm assuming that we would have to split at the "(" and then at the "@" and obtain the 1st index?
Your approach is correct. A literal translation of your algorithm to VB.NET would be:
Dim firstPartOfMailAddress = text.Split("("c)(1).Split("@"c)(0)
"("cis a character literal. Split expects a character, not a string (that would be
(...)operator. Thus, you take the second part
(1)of the first split and the first part
(0)of the second split.