First off, I have to say: whow... and thanks, qwerty! smile

c) was intended as - how to put it - "greedy highlighting"...

eg.:
"*oo*" will match "yooyoo" two times, > mark both occurances of "oo"
"test" will match "test-the-test" 2 times...
"te?t" will match "test-tea-test" 2 times, too... but "te*t" matches "test-tea-test" a LOT more ...

... well, now I start to realize that this might get quite complicated - Most likely, the effort needed will not warrant the result.
The output could even look confusing ....Thinking it over again, I hold that maybe it's a good idea to discard that c) -idea.
And, in fact, the code you provided does the job perfectly: Highlighting if, and where parts of a fullmask are matched by a wildcard mask.
Highlight ALL possible matches is of doubtful usage for my purpose. (I wonder how this could be done, nevertheless) wink

Thanks.