I am trying to search a list of segments and return the indices of all the AL1 segments in my message. I tried the following (and several variations) of the command but I keep getting an error message. I’m sure I just have the syntax wrong but I haven’t been able to figure it out.
Command: set al1Locs [lsearch -regexp -all $segments {^AL1}]
Error Message: wrong # args: should be “lsearch ?mode? list pattern”
[/code]