patch for string.findall (why not, theres an re.findall)
Inyeol Lee
inyeol.lee at siimage.com
Mon Jan 27 13:41:12 EST 2003
On Sun, Jan 26, 2003 at 05:06:09PM -0800, Hunter Peress wrote:
> this finds all indices of a given substring in a string.
> and yes, i already checked pydoc2.3 string
>
> Heres code+unittests.
>
> Im running this by the group for any extra input before i submit it to sf
[...]
If you need an index, use re.finditer() instead of findall.
Inyeol...
More information about the Python-list
mailing list