Changeset 16865


Ignore:
Timestamp:
04/23/19 13:21:08 (4 months ago)
Author:
chaider
Message:

#2971 Added variable block-symbol (') for constraint parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs

    r16830 r16865  
    7878          var targetConstraint = trimmedLine.Substring(start, end-start);
    7979          var match = Regex.Match(targetConstraint,
    80             @"(.*)\s*(\bin\b)\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");
     80            @"['](.*)[']\s*(\bin\b)\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");
    8181          if (match.Success) {
    8282            if (match.Groups.Count != 8) {
     
    108108        } else if (trimmedLine.StartsWith("d") || trimmedLine.StartsWith("\u2202")) {
    109109          var match = Regex.Match(trimmedLine,
    110             @"([d∂])([²³])?\s*(.*)\s+(\/)\s+([d∂])\s*([^²³]*)([²³])?\s*\bin\b\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");
     110            @"([d∂])([²³]?)\s*['](.*)[']\s*(\/)\s*([d∂])\s*['](.*)[']\s*([²³]?)\s*\bin\b\s*([\[\]])\s*(\S*)\s*(..)\s*(\S*)\s*([\[\]])");
    111111
    112112          if (match.Success) {
Note: See TracChangeset for help on using the changeset viewer.