reddit-image-wall-getter/reddit_imgs/system/textTools.py
2018-01-07 01:57:39 -02:00

8 lines
131 B
Python

#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import re
def slugify(dat):
return re.sub(r'[^\w\s\.\-\(\)\[\]]', '-', dat)