Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da246009e31d493818fe4bcf6b0d33dc9bfd48f3
Ticket: 906616ffffffffffffffffffffffffffffffffff
lsearch -regexp error introduced in 8.4.2
User & Date: rickmacd on 2004-03-03 05:55:49
Changes

  1. icomment:
    Logged In: YES 
    user_id=493198
    
    
    Sorry, I totally missed that regexp had undergone such
    expansion. All I need to do is force the Basic RE behaviour
    by adding (?b):
    
    tclsh
    % info patchlevel  
    8.4.2
    % set mylist [list [list [list 3 5] 1 3] [list [list 4 6] 4 6]]
    {{3 5} 1 3} {{4 6} 4 6}
    % set myelement [list [list 4 6]]
    {4 6}
    % lsearch -regexp $mylist ^$myelement
    couldn't compile regular expression pattern: quantifier
    operand invalid
    % lsearch -regexp $mylist (?b)^$myelement
    1
    % 
    
    
    
  2. login: "rickmacd"
  3. mimetype: "text/plain"
  4. username: "rickmacd"