http://www.perlmonks.org?node_id=141925


in reply to Re: Re: Re: A demanding parser
in thread A demanding parser

Ah, sorry. Missed that bit.

How about:

use Regexp::Common; print $RE{balanced}{-parens=>'()'}, "\n"; print $RE{balanced}{-parens=>'{}'}, "\n"; print $RE{balanced}{-parens=>'{}()'}, "\n"; # etc.
followed by reading the Regexp::Common source?

Damian