Skip to content
Tcl Source Code History Of Ticket 1835348
Login

History Of Ticket 1835348

Artifacts Associated With Ticket 1835348

  1. Ticket change [dce24c22cd] (rid 114564) by duquette on 2007-11-20 19:35:15:

    1. assignee initialized to: "pvgoran"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5b3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "duquette"
    10. subsystem initialized to: "43. Regexp"
    11. title initialized to:
      Regex "^" doesn't match start of text when -start is used
      
    12. type initialized to: "Bug"
  2. Ticket change [41c504301c] (rid 116247) by andreas_kupries on 2007-11-21 02:57:32:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  3. Ticket change [a49695dc93] (rid 110229) by andreas_kupries on 2007-11-21 03:00:11:

    1. 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.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [c49bd154f6] (rid 111872) by duquette on 2007-11-21 03:10:31:

    1. closedate changed to: "2007-11-20T20:10:31"
    2. closer changed to: "duquette"
    3. icomment:
      Logged In: YES 
      user_id=372859
      Originator: YES
      
      This is a duplicate of bug 471101.
      
      
    4. login: "duquette"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "duquette"