Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Balanced delimiter parsing

by I0 (Priest)
on Oct 06, 2002 at 06:43 UTC ( #203141=note: print w/replies, xml ) Need Help??


in reply to Balanced delimiter parsing

Using only regexps
$_="...<value>...<value>...</value>...</value>..."; ($re=$_)=~s#((<value>)|(</value>)|.)#${[')','']}[!$3]\Q$1\E${['(','']} +[!$2]#gs; print join "\n",eval{/$re/}; die $@ if $@=~/unmatched/i;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203141]
help
Chatterbox?
[james28909]: ok, i think im going to dive on into OO. i need to keep track of users in a program i have and the easiest way seems to be OO. does anyone have a good site that they knowof for someone wanting to start in O programming?
[karlgoethebier]: james28909: http://modernperlb ooks.com/books/ modern_perl_2016/ 07-object-oriented -perl.html# T2JqZWN0cw
[karlgoethebier]: james28909: http://www.moock. org

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2017-05-25 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?