Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a30cbe0076e23b978e7b8fde1bb6a6c73e1ad94
Ticket: 1178541fffffffffffffffffffffffffffffffff
REG_BOSONLY incorrect with |
User & Date: wielemaker on 2005-04-07 13:37:44
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
    I've incorporated the Tcl regex code in my project
    (www.swi-prolog.org) and found a bug in the regex
    code.  I guess that will also affect Tcl.  I didn't
    find a patch yet, I have some trouble sorting out the
    internals.
    
    In my app it shows as
    
    ?-send(regex('foo|bar'), match, 'xxx bar').
    
    which succeeds!
    
    Match (instead of search) sets REG_BOSONLY, but this causes
    the regex to be read as \Afoo|bar rather than \A(foo|bar).
    
    Using foo|\Abar, all works fine as well.
    
          Cheers --- Jan
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "wielemaker"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "REG_BOSONLY incorrect with |"
  11. type changed to: "Bug"