DSL design (was DSLs in perl and python)
Chris Angelico
rosuav at gmail.com
Tue Mar 29 09:41:15 EDT 2016
On Wed, Mar 30, 2016 at 12:28 AM, Rustom Mody <rustompmody at 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
More information about the Python-list
mailing list