1đź‘Ť
âś…
I don’t know what you mean by “how my Dog object is ever meant to match to a regular expression”.
Your problem is simply that you have a malformed regex: the ?
and the P
are the wrong way round in the name
group.
👤Daniel Roseman
Source:stackexchange.com