Skip to content
Tcl Source Code Artifact [9d0f61643b]
Login

Artifact [9d0f61643b]

Artifact 9d0f61643b86767f1778489e1611295145ac7dd1:

Ticket change [9d0f61643b] - Ticket [2798939fffffffff|2798939fff] <i>Non-greedy quantifiers revert to greedy when branched</i> status still Open with 4 other changes by dkf on 2009-05-31 16:55:25.
D 2009-05-31T16:55:25
J icomment IIRC,\sthe\sproblem\sis\sthat\sthe\s"first"\squantifier\sin\sthe\ssyntax\stree\sis\sthe\salternation,\swhich\scan't\sbe\smade\snon-greedy.\sThe\sfix\sis\sto\suse\s{1,1}?\sto\sforce\sthe\swhole\sRE\sto\sbe\snon-greedy\s(a\snon-capturing\sparen\sis\salso\sneeded,\sbut\sthat's\spretty\strivial).\n\n%\sregexp\s-all\s(?:.+?|x){1,1}?\s{this\sis\sa\stest}\n14\n\nNote\sthat\sthis\sis\sdifferent\sfrom\sPerl/PCRE;\sthey\suse\sa\sdifferent\smodel\sfor\sgreedy/non-greedy\shandling\sthat\sdoes\sthis\sin\sa\sway\sthat\sis\smore\sas\speople\sintuitively\sexpect\s(in\sreturn\sfor\sbeing\sworse\sin\sother\scases).\n
J login dkf
J mimetype text/plain
J username dkf
K 2798939fffffffffffffffffffffffffffffffff
U dkf
Z f8d22dbb9334127114711a65177ba5a1