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
- 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 % - login: "rickmacd"
- mimetype: "text/plain"
- username: "rickmacd"