Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Regex problem while parsing tagged, hierarchical data

by reasonablekeith (Deacon)
on Sep 12, 2006 at 14:58 UTC ( [id://572549]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( $content =~ s/(.*<level1 id="([^"]*).*?)<level2>/$1<level2 id=
    +\"$2\">/gsi ) {  }
    
  2. or download this
    #!/usr/bin/perl
    use XML::DOM;
    ...
    print $doc->toString;
    exit();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://572549]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-23 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found