Skip to content
Tcl Source Code Artifact [78b694ae93]
Login

Artifact [78b694ae93]

Artifact 78b694ae93a6f1c233bf7ad1641b182f3bc6f53709a9ad05d7dacd5bf4ad6627:

Ticket change [78b694ae93] - Ticket [884d0ac78cbab248|884d0ac78c] <i>Unexpected string-start constraint match in middle of string after newline</i> status still Open with 3 other changes by serhiy.storchaka on 2026-10-10 17:51:51.
D 2026-10-10T17:51:51.440
J icomment Same\scause\sas\s[471101ffff]:\swith\s<tt>-all</tt>,\seach\smatch\swas\ssearched\sin\sthe\ssubstring\safter\sthe\sprevious\sone,\sand\s<tt>^</tt>\swas\sallowed\sthere\swhenever\sthe\sprevious\scharacter\swas\sa\snewline,\seven\swithout\s<tt>-lineanchor</tt>.\sPostgreSQL,\swhose\sregex\sengine\sis\sderived\sfrom\sTcl's,\savoids\sthis\sby\spassing\sthe\swhole\sstring\swith\sa\ssearch\sstart\soffset.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=regexp-all-search-start|regexp-all-search-start],\swhich\sdoes\sthe\ssame:\s<tt>regexp\s-all\s{^|\\n}\s"foo\\nbar"</tt>\swould\sreturn\s2,\sand\sthe\s<tt>regsub</tt>\sexample\swould\sgive\sa\ssingle\s<tt>XX</tt>\sbefore\s<tt>bar</tt>.\sWith\s<tt>-lineanchor</tt>,\s<tt>^</tt>\sstill\smatches\safter\sa\snewline.\sTests\sregexp-29.4\sto\s29.7.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 884d0ac78cbab248d054ec96d13c2a741bb0a94c
U serhiy.storchaka
Z f3e7503e4df3ed71f22adcb2ac9b7b23