# -*- coding: utf-8 -*-import res = "dfäg"w = re.sub(ur'(?![\d_])\w', u'X', s.decode('utf8'), 0, re.UNICODE).encode("utf8")print(w)
Standard input is empty
XXXX
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!