Skip to content
Tcl Source Code Artifact [9955c485fa]
Login

Artifact [9955c485fa]

Artifact 9955c485fa6141b0a0f91899a37a8954c115a6da:

Ticket change [9955c485fa] - New ticket [2798939fffffffff|2798939fff] <i>Non-greedy quantifiers revert to greedy when branched</i>. by bilgexa on 2009-05-30 21:15:37.
D 2009-05-30T21:15:37
J assignee pvgoran
J cmimetype text/plain
J comment Non-greedy\squantifiers\srevert\sto\sgreedy\swhen\sused\sin\sconjunction\swith\sbranches\s(pipe\scharacter).\n\nThe\sfollowing\sbranch-free\sexpression\smatches\seach\sletter\sin\sthe\stest\sstring\sand\stherefore\scorrectly\sreturns\s14\nregexp\s-all\s.+?\s{this\sis\sa\stest}\n\nThe\sfollowing\sbranched\sexpression\smatches\sthe\sentire\sstring\sonly\sonce\sbecause\sthe\squantifier\sreverts\sto\sgreedy\sand\stherefore\sincorrectly\sreturns\s1\nregexp\s-all\s.+?|x\s{this\sis\sa\stest}\n\nThis\sbreaks\sa\slot\sof\scomplex\sregular\sexpressions\sthat\srequire\snon-greedy\squantifiers\sand\sbranches.
J foundin obsolete:\s8.5.7
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter bilgexa
J subsystem 43.\sRegexp
J title Non-greedy\squantifiers\srevert\sto\sgreedy\swhen\sbranched
J type Bug
K 2798939fffffffffffffffffffffffffffffffff
U bilgexa
Z 00e6642295cdc74ede10822ddc98afcd