Expanding regexps
Klaus Alexander Seistrup
klaus at seistrup.dk
Wed Oct 29 03:20:07 EST 2003
Fredrik Lundh wrote:
>> Is there a way to "expand" simple regexps?
>
> hint:
>
> import sre_parse
> print sre_parse.parse(rx)
>
> the rest is just a small matter of programming.
I'm not sure it's just a small matter of programming for me, as I
will have to deduce what the notation means (is there a sre_parse
tutorial somewhere?), but thanks for the hint anyway, I'll try and
see if I can make something useful out of the output.
// Klaus
--
><> unselfish actions pay back better
More information about the Python-list
mailing list