Skip to content
Tcl Source Code Artifact [c08fbbcf6d]
Login

Artifact [c08fbbcf6d]

Artifact c08fbbcf6d8afce7d04593bc1a07daaf0ee3f0774e264ce2098226676bb017dd:

Ticket change [c08fbbcf6d] - Ticket [524b35a8b5f9ec64|524b35a8b5] <i>can&#39;t force regex subexpression greediness as stated by man page</i> status still Open with 4 other changes by serhiy.storchaka on 2026-10-10 18:18:30.
D 2026-10-10T18:18:30.068
J foundin 8.6.18,\s9.0.5,\s9.1.0
J icomment Still\sthe\ssame\sin\s8.6,\s9.0\sand\s9.1:\s<tt>parseqatom()</tt>\sdropped\severy\s<tt>{1,1}</tt>\sas\svacuous,\sso\s<tt>{1,1}?</tt>\scould\snot\smake\sa\sgreedy\satom\snon-greedy,\sand\s<tt>{1,1}</tt>\scould\snot\smake\sa\snon-greedy\satom\sgreedy\s(e.g.\s<tt>(.*?){1,1}(.*)</tt>),\scontrary\sto\sre_syntax.n.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=regexp-1-1-quantifier-preference|regexp-1-1-quantifier-preference]:\syour\spatch,\swhich\skeeps\sthe\squantifier\swhen\sit\sasks\sfor\sa\sdifferent\spreference\sthan\sthe\satom\shas.\sWith\sit,\sthe\sresults\sagree\swith\sPostgreSQL\son\sthe\sexample\sand\son\sother\s<tt>{1,1}</tt>\sand\s<tt>{1}</tt>\scases.\sTests\sreg-25.4\sto\s25.9.\sBranch\sbug-524b35a8b5\shad\sthe\ssame\schange\swithout\stests,\sbased\son\score-8-5-branch.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 524b35a8b5f9ec643fc323582217193d91247430
U serhiy.storchaka
Z 32419f3cd0c3b2870fa7f35c1e3622b7