We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#!/usr/bin/env python #-*- coding: utf8 -*- from unicodedata import category s = s.decode('utf-8') s = ''.join(ch for ch in s if category(ch)[0] != 'C') s = ''.join(ch for ch in s if category(ch)[0] != 'P')