in reply to Re (tilly) 2: Determining if you have balanced delimiters
in thread Determining if you have balanced delimiters

Well, in that case, it's another problem, since the dot can match the escape character, so it'll incorrectly blast "(\)".

I knew it was something. {grin}

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re (tilly) 2: Determining if you have balanced delimiters

Replies are listed 'Best First'.
Re (tilly) 4: Determining if you have balanced delimiters
by tilly (Archbishop) on Nov 21, 2000 at 18:09 UTC
    Did you test it?

    It recognizes "(\)" as unbalanced. OTOH he *didn't* bother to have an escape escape an escape. So "(\\)" is still unbalanced.

    But that could be a question of definition, not a bug.