Python regex used to parse a UUID in its full form (36 chars, including hyphens in 12-4-4-4-12 form), and its compact 32 char form (derived from uuid.hex
).
This regex was originally created for a Django url converter that supported uuids in both forms.