Skip to content

Commit 512c59c

Browse files
committed
Verbessertes Money Regex-Pattern
1 parent 0ad22d0 commit 512c59c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MAS_Reader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def DeleteEmptyFolder(Pfad: str):
7777
"Ausdruck":r"(A|B) \d{3}",
7878
"Geraetetyp":r"\x1bK\"",
7979
"Ablaufdatum":r"\d{4}/\d{2}",
80-
"Geld":r"(- |-| |- |)(\d{6}|\d{5}|\d{4}|\d{3}|\d{2}|\d{1}),\d{2}"}
80+
"Geld":r"\d+(.\d{1,2})"
81+
}
8182

8283

8384

@@ -249,8 +250,8 @@ def __str__(self):
249250
Saldo 2: {self.Saldo_2}\r
250251
Einsaetze: {self.Einsaetze}\r
251252
Gewinne: {self.Gewinne}\r
252-
Einwurf: {self.Einwurf} \r
253-
Auswurf: {self.Auswurf} \r
253+
Einwurf: {self.Einwurf} \r
254+
Auswurf: {self.Auswurf} \r
254255
Geraetetyp: {self.Geraetetyp} \r
255256
"""
256257

0 commit comments

Comments
 (0)