Fixed opening and closing tag regex issue