<i>greedy vs. non-greedy confusion</i> status still Open with 3 other changes
by
.
D 2026-10-11T10:51:38.656
J icomment This\sis\sthe\sdocumented\srule:\sthe\sfirst\squantified\satom,\s<code>.*?</code>,\smakes\sthe\nwhole\smatch\sas\sshort\sas\spossible,\sand\s<code><nowiki>[a-z]+</nowiki></code>\sis\sgreedy\sonly\swithin\sit.\nPostgreSQL\s(same\sengine)\sgives\sthe\ssame\sresult.\sWorkarounds:\n<code><nowiki>(?:x.*?([a-z]+)){1,1}</nowiki></code>\sor\s<code><nowiki>x[^a-z]*([a-z]+)</nowiki></code>;\sboth\sgive\n<code>word</code>.\sThe\sdocs\sare\sclarified\sin\sbranch\n[/timeline?r=doc-re-syntax-preference|doc-re-syntax-preference]\s(see\s[fe4fca32d9]).
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 219219ffffffffffffffffffffffffffffffffff
U serhiy.storchaka
Z 1248aadaec5df6c5559a4068c392b2fa