Originally posted by Mike Wilson
I am having some issues with getting the matches I want. Or dont want more specifically.
Here is what I am doing.
I have fields that I am adding into a list.
set list
when I echo the list i get: DR^NAME^HERE {MORE^DR^NAMES^N^^^MD~THIS^DOC^NAMES^P^^^MD}I then try and run a regexp against them:lsearch -regexp $list "HI"This matches due to the "THIS" in the second part of the list. However, I dont want it to. I want it to match only if HI is by itself. If I take the regexp outside of tcl I can do anchors such as HIb . Then it will only match if the list isDR^NAME^HERE {MORE^DR^NAMES^N^^^MD~HI^DOC^NAMES^P^^^MD}How do I get this regexp to work inside of TCL? Thanks in advance for any help!