I have the following buffer returning from a .textContent
Latitude
32,6549581304256
Longitude
-16,9288643331225
I fixed the whitespaces with dwText = Regex.Replace( dwText, @"\s{2,}", "\n"); resulting in
Latitude
32,6549581304256
Longitude
-16,9288643331225
I then transformed this new output to my needs by dwText = Regex.Replace( dwText, @"(Latitude|Longitude)(.*)\n", "$1: "); resulting in
Latitude: 32,6549581304256
Longitude: -16,9288643331225
My question is can i do these 2 lines in one go?
dwText = Regex.Replace( dwText, @"\s{2,}", "\n");
dwText = Regex.Replace( dwText, @"(Latitude|Longitude)(.*)\n", "$1: ");
I would appreciate some help on how this can be achieved more efficiently, thank you.
