(defun ensure-prefix-slash-only (url) (if (equal url "") "" (=~ "^/*(.*?)/*$" url (strcat #\/ ($ 1)))))