Instead of `|()`, couldn't we just do `?`? So like `"((=([^;]*))?(;|$))"`. Then lower down, couldn't you do `(typeof match[4] === 'string' ? match[4] : '');`?