Skip to content
Tcl Source Code Artifact [64798a81fa]
Login

Artifact [64798a81fa]

Artifact 64798a81fae509e131d8b50bed90d2c25dd63a35cb44c262aabf09adeb783219:

Ticket change [64798a81fa] - Ticket [860549ba83b43dbe|860549ba83] <i>regex compilation issue with (?q)</i> status still Open with 3 other changes by serhiy.storchaka on 2026-10-11 11:00:11.
D 2026-10-11T11:00:11.000
J icomment As\sre_syntax(n)\ssays,\sembedded\soptions\ssuch\sas\s<code>(?q)</code>\sare\savailable\sonly\nat\sthe\sstart\sof\san\sARE.\sAfter\s<code>^</code>,\s<code>(?</code>\sis\sparsed\sas\sa\sgroup\nstarting\swith\sa\s<code>?</code>\squantifier,\shence\sthe\serror;\sPostgreSQL\s(same\sengine)\nrejects\sit\sthe\ssame\sway.\s<code>(?q)</code>\salso\smakes\sthe\srest\sof\sthe\sRE\sliteral,\sso\sit\ncannot\sbe\scombined\swith\s<code>^</code>,\sand\sscoped\sforms\slike\s<code>(?q:...)</code>\nare\snot\ssupported.\sFor\san\sanchored\sliteral\sprefix\suse\n<code>string\sfirst\s$prefix\s$fn</code>\s==\s0,\sor\sescape\sthe\sprefix:\n<code><nowiki>regexp\s^[regsub\s-all\s{\\W}\s$prefix\s{\\\\&}]\s$fn</nowiki></code>.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 860549ba83b43dbe58ae9fd73e7d7a0c26f695b3
U serhiy.storchaka
Z 0309ecce5b5e46dc555cc90013c3d0a7