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