fork download
  1. using System.Text.RegularExpressions;
  2. using System;
  3.  
  4. namespace Test{
  5. class Test{
  6.  
  7. public static void Main(){
  8. string value = "123.323HHH";
  9.  
  10. double number = double.Parse(Regex.Match(value, @"[\d.]+").Value);
  11. string measure = value.Replace(number.ToString(), "");
  12. Console.WriteLine(number);
  13. Console.WriteLine(measure);
  14. }}}
Success #stdin #stdout 0.07s 37216KB
stdin
Standard input is empty
stdout
123.323
HHH