import rexmlreplace=re.compile("((?i)[^\w\_\-\.])", re.UNICODE)print(xmlreplace.sub("-" , "regex test"))
Standard input is empty
regex-test
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!