Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3191

Quantifier on composed rule is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0ruta
    • Ruta
    • None

    Description

      I wrote the following script and expected it to match strings like "A1A-1A1-A1A" :

      DECLARE Id;
      
      Document{->RETAINTYPE(WS)};
      (NUM | CW)+{-> MARK(Id, 1, 2)} (SPECIAL{REGEXP("-")} (NUM | CW)+)+;
      Document{->FILTERTYPE(WS)};
      

      When I ran it through the workbench (version 2.0.1), all matches contained at most one dash like if the last PLUS-GREEDY is ignored.

      I also tried to run a similar script with the trunk version of the workbench and had similar results.

      Attachments

        Activity

          People

            pkluegl Peter Klügl
            apatry Alexandre Patry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: