I have the following string:
string value = "123.456L";
double number = 123.456;
string measure = "L"
oz
m/s
liter
kilograms
Assuming that the units of measure are always expressed as a single character at the back of the string, you can do this:
string value = "123.456L";
var pos = value.LastIndexOfAny("0123456789".ToCharArray());
double number = double.Parse(value.Substring(0, pos+1));
string measure = value.Substring(pos+1);