Well, I poked at it a bit, fixed the wulfe.pcname bug on the side, and then gave up on the preg thing since it's coded in a way my brain doesn't like to process.
I've called in the big brain squad in the meantime, but if they don't fix it I can try to rip out the guts and do FENWAY later.