reddit-image-wall-getter/reddit_imgs/system/textTools.py

8 lines
131 B
Python
Raw Normal View History

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