fork(4) download
  1. # -*- coding: utf-8 -*-
  2. import re
  3. s = "dfäg"
  4. w = re.sub(ur'(?![\d_])\w', u'X', s.decode('utf8'), 0, re.UNICODE).encode("utf8")
  5. print(w)
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
XXXX