I want to get the value in the “TaxID” field on the ACME website. I was able to get it up to a certain point with the split code I wrote, but the value I wanted was after “:”
Use this: taxID = StrVendorInformationGetText.Split(":"c)(1).Trim().Split(Environment.NewLine.ToCharArray)(0).Trim()
It first splits based on the colon (“:”) character and takes the second part (index 1), which gives you “RU567434 Name” and at index 3 “Red Communications Address” and so on…
It then splits this text by a new line (Environment.NewLine), which separates “RU567434” and “Name” into two separate elements in an array.
Finally, it takes the first element of the array (index 0) and trims if any spaces.