Skip to content
Tcl Source Code Artifact [dce24c22cd]
Login

Artifact [dce24c22cd]

Artifact dce24c22cdd1ed7825eaaa535cd6fd5c778630ae:

Ticket change [dce24c22cd] - New ticket [1835348fffffffff|1835348fff] <i>Regex &quot;^&quot; doesn&#39;t match start of text when -start is used</i>. by duquette on 2007-11-20 19:35:15.
D 2007-11-20T19:35:15
J assignee pvgoran
J cmimetype text/plain
J comment Tcl\sversions:\s8.4.16,\s8.5b1.\nmacosx\s10.4.9\n\nNormally,\s"^"\smatches\sthe\sstart\sof\sinput:\n\n\s\s%\sregexp\s-line\s-start\s0\s{^foo}\s"foo"\n\s\s1\n\nWhen\s-line\sis\sspecified,\s"^"\smatches\sthe\sbeginning\sof\sa\sline\sin\nthe\smiddle\sof\sthe\sinput:\n\n\s\s%\sregexp\s-line\s-start\s0\s{^foo}\s"\\nfoo"\n\s\s1\n\nWhen\s-start\sis\sused,\s"^"\swill\snot\smatch\sthe\stext\sat\sthe\s-start\nlocation:\n\s\n\s\s%\sregexp\s-line\s-start\s1\s{^foo}\s"\\nfoo"\n\s\s0\n\nHowever,\s"\\A"\swill\smatch\sthere\sjust\sfine:\n\n\s\s%\sregexp\s-line\s-start\s1\s{\\Afoo}\s"\\nfoo"\n\s\s1\n\nI\sthink\sthe\sthird\scase\sis\sa\sbug;\sall\sfour\sof\sthese\sexamples\sshould\smatch.
J foundin obsolete:\s8.5b3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter duquette
J subsystem 43.\sRegexp
J title Regex\s"^"\sdoesn't\smatch\sstart\sof\stext\swhen\s-start\sis\sused
J type Bug
K 1835348fffffffffffffffffffffffffffffffff
U duquette
Z 415a309f4c4b23d8375c63985bd6ab49