Changeset 16809 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
- Timestamp:
- 04/18/19 08:45:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs
r16780 r16809 58 58 var targetConstraint = trimmedLine.Substring(start, end-start); 59 59 var match = Regex.Match(targetConstraint, 60 @"( [^\s]*)\s*(\bin\b)\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");60 @"(.*)\s*(\bin\b)\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])"); 61 61 if (match.Success) { 62 62 if (match.Groups.Count != 8) { … … 88 88 } else if (trimmedLine.StartsWith("d") || trimmedLine.StartsWith("\u2202")) { 89 89 var match = Regex.Match(trimmedLine, 90 @"([d∂])([²³])?\s*( \S*)\s*(\/)([d∂])\s*([^²³]*)([²³])?\s*\bin\b\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");90 @"([d∂])([²³])?\s*(.*)\s+(\/)\s+([d∂])\s*([^²³]*)([²³])?\s*\bin\b\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])"); 91 91 92 92 if (match.Success) { … … 135 135 continue; 136 136 } else { 137 throw new ArgumentException("Error at your constraints definition constraints have to start with Target: | d | \u2202 | #");137 throw new ArgumentException("Error at your constraints definition constraints have to start with (Target: | d | \u2202 | #)"); 138 138 } 139 139 }
Note: See TracChangeset
for help on using the changeset viewer.