浏览代码

changed grouping from - to .

Moritz Schmidt 6 年之前
父节点
当前提交
08a641f21c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"