On Wed, Mar 30, 2016 at 12:28 AM, Rustom Mody <rustompm...@gmail.com> wrote:
> Thanks once again to Peter and Jussi.
> With that groupindex pointer, this tiny dsl for re's is here
> https://github.com/rusimody/redsl
> [How BTW did you folks go about unearth that groupindex?? Dont see it in docs]

Depending on your version:

https://docs.python.org/2/library/re.html#re.RegexObject.groupindex
https://docs.python.org/3/library/re.html#re.regex.groupindex

You can find that by searching the docs for "?P", the syntax used in
the RE itself.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to