regex for generat urls n mongodb