Going all regex-y on XMPP.