simplified Regular Expression pattern match framework based on RegExp.