Artifacts Associated With Ticket 860549ba83b43dbe
Ticket change [b2a4113457] (rid 177264) by bll on 2019-11-22 16:20:18:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "8.6.10"
- is_private initialized to: "0"
- login: "bll"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "bll"
- subsystem initialized to: "43. Regexp"
- title initialized to: "regex compilation issue with (?q)"
- type initialized to: "Bug"
Ticket change [64798a81fa] (rid 257608) by serhiy.storchaka on 2026-10-11 11:00:11:
- 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>. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [928ad9c8bb] (rid 257609) by serhiy.storchaka on 2026-10-11 11:00:11:
- login: "serhiy.storchaka"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [5162f66bcb] (rid 259886) by serhiy.storchaka on 2026-10-22 17:19:24:
- closedate changed to: "2461324.9584611575"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"