Difference in DateTime

CSharp · Console

/Program.cs

using System;
using System.Text.RegularExpressions;
					
public class Program
{
	public static void Main()
	{
		// An example collection of your input
		var input = "YH300s, H900H, 234, 90.5, +12D, 48E, R180S, 190A, 350A, J380S, 100A/400, 90H/L600, 300s/18h";
		
		var parts = input.Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries);
                                     var regex = new Regex(@"[\d]?\.?[\d]+");

                                     foreach (var part in parts)
                                     {
                                         // there can be many matches, e.g. "A100B1111" => "100" and "1111"            
                                         foreach (Match m in regex.Matches(part))
                                         {
                                             if (double.Parse(m.Value) > 125)
                                             {
                                                 Console.WriteLine(part);
                                             }
                                         }
                                     }      
		
	
		
	}
}
;