in reply to __LANG__Monks slogans
in thread Insert Language Here Monks

RegexMonks could also be: I can do anything, but so can my modem.

Replies are listed 'Best First'.
Re: Re: __LANG__Monks slogans
by maverick (Curate) on Jul 27, 2001 at 22:14 UTC
    RegexMonks: I can do anything...?

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

    /\/\averick

      $re = qr/(?:(?>[^()]*)|\((??{$re})\))+/; print 'I (pity (the (fool) who) dont) know (regexes)' =~ /^$re$/;
         MeowChow                                   
                     s aamecha.s a..a\u$&owag.print