here’s a number of possible strings I’m dealing with:
“On Change”
“OffToOn OnToOff”
“OffToOn On”
“Change On Off”
I’d need to figure out which strings contain the word “On” (so the second string above would fail since On is only part of other words).
strmatch(“On”,$mystring) obviously would capture all of the above, which is not what I want.
If it can’t be done, maybe we should have the equivalent of a “word separator” symbol added to strmatch? (in perl it’s \b if I’m not mistaken, which matches spaces, beginning of strings, end of strings, etc.)