[Python-Dev] sre improvements
Fredrik Lundh
fredrik@pythonware.com
Wed, 13 Jun 2001 18:32:13 +0200
skip wrote:
> Gustavo> I'd like, for example, to see the (?(1)blah) operator,
> Gustavo> available in perl, working.
>
> For the non-Perl-heads on the list, can you explain what the (?(1)blah)
> operator does?
conditionals:
(?(cond)true)
(?(cond)true|false)
where cond is a group number (true if defined) or an assertion
pattern, and true/false are patterns.
(imo, whoever invented that needs help ;-)
</F>