in reply to Cont:match failing
Because $folder doesn't match the entire match string given in $mk.
What do you actually want to test with the match?