public void CheckMultiplicationEntity() { int lineno = 0; bool start = false; foreach (string line in _contentList) { lineno++; if (line.Contains("<text>")) { start = true; } if (start) { foreach (Match match in Regex.Matches(line, @"([0-9]x[0-9]|[0-9\sx\s0-9]")) { List<ErrorModel> errorlist = ErrorList; ErrorModel errorModel = new ErrorModel() { LineNumber = lineno, ErrorMessage = "Please check \"x\" should ×", Text = ShortenText(match.Value) }; errorlist.Add(errorModel); } } } }
[0-9]\s*x\s*[0-9]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)