Torna al Thread

string input = "(Ns. Conferma d'Ordine-2008-231 del 26/02/2008)"; Regex regx = new Regex(@"\d*/\d*/\d*",RegexOptions.IgnoreCase | RegexOptions.Multiline); string data = regx.Match(input).Value; //--- cambi il pattern regx = new Regex(@"\d{1,}-\d{1,}"); string numero = regx.Match(input).Value;
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5