Skip to content
Tcl Source Code History Of Ticket 860549ba83b43dbe
Login

History Of Ticket 860549ba83b43dbe

Artifacts Associated With Ticket 860549ba83b43dbe

  1. Ticket change [b2a4113457] (rid 177264) by bll on 2019-11-22 16:20:18:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      bll-tecra:bll$ rlwrap ../linux/64/tcl/bin/tclsh
      % set pat "^(?q)/home/bll/blah/blah/blah"
      ^(?q)/home/bll/blah/blah/blah
      % set fn "/home/bll/blah/blah/blah/somedir/somefile.txt"
      /home/bll/blah/blah/blah/somedir/somefile.txt
      % regsub $pat $fn {} stuff
      couldn't compile regular expression pattern: quantifier operand invalid
      % 
      
      Occurs in 8.6.9 also.
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "bll"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "bll"
    13. subsystem initialized to: "43. Regexp"
    14. title initialized to: "regex compilation issue with (?q)"
    15. type initialized to: "Bug"
  2. Ticket change [64798a81fa] (rid 257608) by serhiy.storchaka on 2026-10-11 11:00:11:

    1. icomment:
      As re_syntax(n) says, embedded options such as <code>(?q)</code> are available only
      at the start of an ARE. After <code>^</code>, <code>(?</code> is parsed as a group
      starting with a <code>?</code> quantifier, hence the error; PostgreSQL (same engine)
      rejects it the same way. <code>(?q)</code> also makes the rest of the RE literal, so it
      cannot be combined with <code>^</code>, and scoped forms like <code>(?q:...)</code>
      are not supported. For an anchored literal prefix use
      <code>string first $prefix $fn</code> == 0, or escape the prefix:
      <code><nowiki>regexp ^[regsub -all {\W} $prefix {\\&}] $fn</nowiki></code>.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [928ad9c8bb] (rid 257609) by serhiy.storchaka on 2026-10-11 11:00:11:

    1. login: "serhiy.storchaka"
    2. resolution changed to: "Invalid"
    3. status changed to: "Closed"
  4. Ticket change [5162f66bcb] (rid 259886) by serhiy.storchaka on 2026-10-22 17:19:24:

    1. closedate changed to: "2461324.9584611575"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"