Help for this page
my $xpath = 'BoringNode[1]/InterestingNode[@InterestingAttribute="outg +rabe"]/AnotherBoringNode[@BoringAttribute="grey"]'; $xpath =~ /(InterestingNode\[.*?\])/; $1 =~ /"(.*)"/; print $1 . "\n";
$xpath =~ /(InterestingNode\[@.*?"(.*?)".*?\])/; print $2 . "\n";