Большое обновление всего проекта

This commit is contained in:
2024-01-15 03:45:18 +03:00
parent 827674ba4c
commit 026cc9b6bb
36 changed files with 760 additions and 617 deletions
+20
View File
@@ -0,0 +1,20 @@
class Constants:
whitespace = r"\s*"
unknown_begin_part = r"<(\d{1,2})>"
month = r"([A-Za-z]{3})"
number = r"(\d+)"
time = r"(\d{2}:\d{2}:\d{2})"
word = r"(\S+)"
anything = r"(.*)"
class Pattern:
def __int__(self):
self.parts = []
def __str__(self):
result = ""
for part in self.parts:
result += part[0] + Constants.whitespace
return result