A spiritual follow up to D131032. I noticed some regex could be simplified.
This does some of the following:
- Removes unused capture groups
- Uses non-capturing (?:...) groups where grouping is needed but capturing isn't
- Removes trailing .*
- Uses \d over [0-9]
- Uses raw strings
- Uses {N,} to indicate N-or-more
Also improves the call site of a re.findall.