String slugise(String string) { string.toLowerCase() .replaceAll('[^\\w/]', '-') .replaceAll('-+', '-') .replaceAll('-\$', '') }