using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Centron.Tests.EndToEnd.Infrastructure { public class RegexHelper { public const string Date = "\\d{2}\\.\\d{2}\\.\\d{4}"; //Beispiel: 01.01.2010 public const string RtfCreatedDate = "{\\\\creatim\\\\yr\\d{4}\\\\mo\\d{1,2}\\\\dy\\d{1,2}\\\\hr\\d{1,2}\\\\min\\d{1,2}}"; //Beispiel: {\\creatim\\yr2020\\mo1\\dy7\\hr13\\min41} // Matches the whole RTF \info author region up to the trailing {\version token. This swallows the // \upr/\ud unicode-author fallback DevExpress emits when the OS user name contains non-ANSI chars // (e.g. "Müller"), so the normalized baseline stays "{\info{\author John Doe}{\version1}}" regardless // of who regenerates it. Replacement is "{\info{\author John Doe}", leaving {\version...} intact. public const string RtfInfo = "{\\\\info.*?(?={\\\\version)"; public const string Guid = "[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}"; } }