Oh sorry, I was trying to see if I could get django reverse to work w/ that RE and I couldn't. I didn't know if I was missing something which someone else could point out or if django reverse just can't handle that type of RE. The django docs only mentioned choking on OR (|). If people think it's worthwhile, I can try to see if it's the whitespace in the RE which is screwing it up (for parsing the (?x) tells the resolver to ignore the whitespace in the RE template). If anyone has other hypotheses, that'd be wonderful to try. I also don't know if I should supply all the keywords using None for the ones to omit from the reverse output or leave out the ones which the reverse should omit in its result.

If it's not worthwhile (i.e., we're willing to forgo using reverse on these), then I'll remove the commented line.