in reply to Extracting part of a substring with one regex (with backreference?)
Hi loris, try this.
my $xpath = 'BoringNode[1]/InterestingNode[@InterestingAttribute="outg +rabe"]/AnotherBoringNode[@BoringAttribute="grey"]'; print $xpath =~ /InterestingNode\[[^"]+\"([^"]+)\"\]/;
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting part of a substring with one regex (with backreference?)
by loris (Hermit) on Oct 28, 2005 at 09:20 UTC | |
by japhy (Canon) on Oct 28, 2005 at 13:01 UTC | |
by loris (Hermit) on Oct 28, 2005 at 13:12 UTC | |
by Util (Priest) on Oct 28, 2005 at 13:01 UTC | |
by loris (Hermit) on Oct 28, 2005 at 13:09 UTC |