match tags across lines