in reply to commenting regular expressions?
my $pattern = qr/ \s* <PgfTag `Normal \(T\)'> \s* /x; [download]