我正在设法找到列表中第一个和最后一个匹配的单词或正则表达式。set list "The dog rant to the field by the red house..."set first [lsearch -regexp $list \[Tt\]he] set last [lsearch -last -regexp $list \[Tt\]he
我正在尝试在一个文本文件中查找匹配的行,其中包含4列数字,如下所示:101138 0.420335 -.238945 .1446484这是我的代码,在其中我试图找到数字"101138“的坐标,但由于没有找到匹配项,因此有些东西无法工作。Input.txt" r]
set inputList [split $filecontent "\n"]
set Text