question about regexps

Fredrik Lundh fredrik at effbot.org
Tue Jan 9 10:57:42 EST 2001


lg at rgz.ru wrote:
> may be it's offtopic but i've got next problem:
> need to define recurse regexp simethink like
>
> a = some_regexp(a)
> and then pick out all nests of this regex from some string

not sure, but maybe re.findall is what you're looking for?

cheers /F





More information about the Python-list mailing list