General matcher functions that accepts character sets