diff --git a/backend/vplan_utils.py b/backend/vplan_utils.py index 5fdd96ee..e4d15a17 100644 --- a/backend/vplan_utils.py +++ b/backend/vplan_utils.py @@ -10,17 +10,21 @@ _parse_form_pattern = re.compile( r"(?\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))" - r"(?P[/.] |[^A-Za-zÄÖÜäöüß0-9() \n]?)" - r"(?P(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+?)(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+?))*)" - r"|(?P\d{1,2})" + r"(?P |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(?" + r"(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2})" + r"(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2}))*" + r")|(?P\d{1,2})" r")(?![^\s,:])" ) _loose_parse_form_pattern = re.compile( r"(?\d{1,2}(?!\d)|[A-Za-zÄÖÜäöüß]+(?![A-Za-zÄÖÜäöüß]))" - r"(?P[/.]? |[^A-Za-zÄÖÜäöüß0-9() \n]?)" - r"(?P(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+?)(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+?))*)" - r"|(?P\d{1,2})" + r"(?P |[/._]|[^A-Za-zÄÖÜäöüß0-9() \n]?)(?:(?" + r"(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2})" + r"(?:,(?:\d{1,2}[A-Za-zÄÖÜäöüß]?|[A-Za-zÄÖÜäöüß]+\d{0,2}))*" + r")|(?P\d{1,2})" r")(?![^\s,:()])" )