Explorar o código

changed grouping from - to .

Moritz Schmidt %!s(int64=6) %!d(string=hai) anos
pai
achega
08a641f21c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -11,7 +11,7 @@ elif len(sys.argv) == 2:
     for f in files:
     for f in files:
         print f
         print f
         match = re.match(r'([a-zA-Z.]*).([S|s][0-9]*[E|e][0-9]*).([a-zA-Z0-9äöüÄÖÜß\-\.\,\w]*)', f)
         match = re.match(r'([a-zA-Z.]*).([S|s][0-9]*[E|e][0-9]*).([a-zA-Z0-9äöüÄÖÜß\-\.\,\w]*)', f)
-        newName = match.group(1) + "-" + match.group(2) + "-" + match.group(3)
+        newName = match.group(1) + "." + match.group(2) + "." + match.group(3)
         print newName
         print newName
         os.rename(f, newName)
         os.rename(f, newName)
         print "\n"
         print "\n"