$tname =~ m/[declaration_]?name="(.*?)"/; [download]
In reply to Re^7: getting ancestors of element by jccunning in thread getting ancestors of element by jccunning