Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: regex for nested "<"/">'

by tybalt89 (Monsignor)
on Feb 13, 2020 at 17:00 UTC ( [id://11112926]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
      ( $1 && $level++, $level ? $& : '', $2 && $level--)[1] /gesr;
    
    print "$nested\n";
    
  2. or download this
    beginning a bend
    before stuff
    ...
      end
      five
    end
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found