Artifacts Associated With Ticket 1835348
Ticket change [dce24c22cd] (rid 114564) by duquette on 2007-11-20 19:35:15:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl versions: 8.4.16, 8.5b1. macosx 10.4.9 Normally, "^" matches the start of input: % regexp -line -start 0 {^foo} "foo" 1 When -line is specified, "^" matches the beginning of a line in the middle of the input: % regexp -line -start 0 {^foo} "\nfoo" 1 When -start is used, "^" will not match the text at the -start location: % regexp -line -start 1 {^foo} "\nfoo" 0 However, "\A" will match there just fine: % regexp -line -start 1 {\Afoo} "\nfoo" 1 I think the third case is a bug; all four of these examples should match. - foundin initialized to: "obsolete: 8.5b3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "duquette"
- subsystem initialized to: "43. Regexp"
- title initialized to:
Regex "^" doesn't match start of text when -start is used
- type initialized to: "Bug"
Ticket change [41c504301c] (rid 116247) by andreas_kupries on 2007-11-21 02:57:32:
- icomment:
Logged In: YES user_id=75003 Originator: NO Note that the behaviour of the third case is, IIRC, documentend as such ... Yes, regexp.n ... -start index Specifies a character index offset into the string to start matching the regular expression at. When using this switch, `^' will not match the beginning of the line, and \A will still match the start of the string at index.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a49695dc93] (rid 110229) by andreas_kupries on 2007-11-21 03:00:11:
- icomment:
Logged In: YES user_id=75003 Originator: NO Forgot to say, I know this because I fell into the same trap first and had to rewrite ^ to \A in code of mine where I wanted to use -start to avoid 'string range' and shifting the string down.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [c49bd154f6] (rid 111872) by duquette on 2007-11-21 03:10:31:
- closedate changed to: "2007-11-20T20:10:31"
- closer changed to: "duquette"
- icomment:
Logged In: YES user_id=372859 Originator: YES This is a duplicate of bug 471101.
- login: "duquette"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "duquette"