Thanks Paul. That certain seems to be better than anything I have come up with, but still fails. It erroneously finds (for example)
ZSDGHASGHASHGZDHFGFT (but according to my spec, there should be a Z in pos 3 or 4 and there isn't)
For the avoidance of doubt, should I be searching with .MatchCase true or false, and .MatchWholeWord true or false?
Thanks
Mike
|