in reply to Writing compact conditional regex's

This is not a direct answer, just some points you might want to know about.