in reply to I want to find a group of pattern in a xml file
a) you really don't want to use regexen to parse XML, 2) XML::Twig, III) profit!
Update: To get you kick started, you'd want to use xpath along the lines of age[string()=~ /\A 43 \z/x] then find the name node using something like prev_sibling("name").
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I want to find a group of pattern in a xml file
by cybär (Initiate) on Sep 16, 2008 at 13:39 UTC |