in reply to Preferred Methods (again)
(Untested. Not certain that second regex returns a list. Might need to be in a loop after all.)# trim to just the Root node $xmlIn =~ s/^.*(<Root.*?>).*$/$1/s; # grab the key/value pairs %rootAttr = ($xmlIn =~ m#(\S+?)="(\S+?)"#g);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Preferred Methods (again)
by Juerd (Abbot) on Jan 17, 2002 at 01:25 UTC | |
by perrin (Chancellor) on Jan 17, 2002 at 01:33 UTC | |
by Juerd (Abbot) on Jan 17, 2002 at 01:38 UTC | |
by perrin (Chancellor) on Jan 17, 2002 at 01:44 UTC | |
by BMaximus (Chaplain) on Jan 17, 2002 at 02:21 UTC | |
by Matts (Deacon) on Jan 17, 2002 at 17:07 UTC |