- This topic has 3 replies, 4 voices, and was last updated 8 years, 8 months ago by .
-
Topic
-
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 is
DR^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!
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.