In C I use sscanf to split a string
sscanf(In, "%2d%2d%c", &lat_deg, &lat_min, &lat_hem);
How to I do this in razor with no delimeters? Easy to do with delimeters but all i know is the size of the string and it needs to be split at certain spots.
The string I am trying to spilt has the following format 342050S and needs to be split into 4 parts 34 20 50 and S. I tried using a Regex example I found online but it didn't like being in my cshtml code... didn't seem to know what it was...
Is there something better than using str.Substring() on the input?
I am very new to this from a C background so thank you for your help.