Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: __LANG__Monks slogans

by maverick (Curate)
on Jul 27, 2001 at 22:14 UTC ( #100403=note: print w/replies, xml ) Need Help??


in reply to Re: __LANG__Monks slogans
in thread Insert Language Here Monks

RegexMonks: I can do anything...?

<sarcasm>
Write a regex that determines if an arbitrary set of parentheses are balanced within a string. :-)
</sarcasm>

/\/\averick

Replies are listed 'Best First'.
(MeowChow - I am the lizard king...) Re3: __LANG__Monks slogans
by MeowChow (Vicar) on Jul 28, 2001 at 02:04 UTC
    $re = qr/(?:(?>[^()]*)|\((??{$re})\))+/; print 'I (pity (the (fool) who) dont) know (regexes)' =~ /^$re$/;
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://100403]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-10-22 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (271 votes). Check out past polls.

    Notices?