Skip to content

Instantly share code, notes, and snippets.

@diewland
Created August 2, 2019 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diewland/63ce548cb4fb83f2c51f18474b0a8bbb to your computer and use it in GitHub Desktop.
Save diewland/63ce548cb4fb83f2c51f18474b0a8bbb to your computer and use it in GitHub Desktop.
import re
def validate_thai_filename(filename):
return re.sub('[^ก-๙a-zA-Z0-9.,_-]', '_', filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment