added the $matches and $matchesCase operators for regex matching