private string GetRegex_Simple() { List <Information> informationsInSentences = CheckAndGetInformationInSentences(); string regex = ".*"; foreach (Information informationsInSentence in informationsInSentences) { regex += InformationTypePattern.GetPattern(informationsInSentence.Type) + ".*"; } return(regex); }
public string GetPattern(int min, int max) { return(string.Format("(?<{0}>{1})", Name, InformationTypePattern.GetPattern(Type, min, max))); }