Is there a maximum length of a regular expression in python?
Frithiof Andreas Jensen
frithiof.jensen at diespammerdie.jensen.tdcadsl.dk
Thu Jan 19 18:00:46 EST 2006
<olekristianvillabo at gmail.com> skrev i en meddelelse
news:1137591911.333364.221990 at z14g2000cwz.googlegroups.com...
> I have a regular expression that is approximately 100k bytes. (It is
> basically a list of all known norwegian postal numbers and the
> corresponding place with | in between. I know this is not the intended
> use for regular expressions, but it should nonetheless work.
Err. No.
A while back it was established in this forum that re's per design can have
a maximum of 99 match groups ... I suspect that every "|" silently consumes
one match group.
More information about the Python-list
mailing list