match tag open and closing