<br><br><div class="gmail_quote">On Sun, Jul 31, 2011 at 8:41 PM, Devin Jeanpierre <span dir="ltr"><<a href="mailto:jeanpierreda@gmail.com" target="_blank">jeanpierreda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Could you elaborate on the change? I don't understand your<br>
modification. The regex is a different one than the original, as well.<br></blockquote><div>What do you mean by elaborate on the change. You mean explain. I guess I could do it in more detail. What would happen is if you do something like.</div>

<div><br></div><div>match=re.search('^(?<u>PP</u><tag>[a-z])*$', 'abc')</div><div>Then the match.groupdict() would return</div><div>{'tag.0':'a', 'tag.1':'b', 'tag.2':'c', 'tag.-1':'c', 'tag.-2':'b', 'tag.-3':'a'}</div>

<div>notice the PP. This means that it will save all the times it matches. It does this by adding a decimal after the tag to show the index. It also supports negative indexing in case you want the last time it matched. All these can be used with the old (?P=tag.-2) with it. Also, are there any forbidden characters in a tag. That would be good to add so it won't mess with current tags.</div>

</div>