change ejabberd regex to re