rule_001:
# Name Käufer => muss bekannt sein => Schreibweise "Vorname Nachname"
tagname: Rechnung_§tagname_RegEx
tagname_RegEx: (?i)\b(Vorname1 Nachname1|Vorname2 Nachname2)\b
condition: all
subrules:
- searchstring: \b(Vorname1 Nachname1|Vorname2 Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_002:
# Name Käufer => muss bekannt sein => Schreibweise "Vorname'neue Zeile'Nachname"
tagname: Rechnung_§tagname_RegEx
tagname_RegEx: (?i)\b(Vorname1 Nachname1|Vorname2 Nachname2)\b
multilineregex: true
condition: all
subrules:
- searchstring: \b(Vorname1 Nachname1|Vorname2 Nachname2)\b
searchtyp: is not
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: \b(Vorname1\s*|Nachname1|Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_003:
# Verkäufer mittels Adresse finden ==> Käufer 1
tagname: §tagname_RegEx
tagname_RegEx: (?i)(?=^([^1]*(1([^2]|$)|12([^3]|$)|123([^4]|$)|1234([^5]|$)|12345([^6]|$)(123456([^L])|$))?)*$)^(?>(^([a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+)))\b\N*?\b(?=\W{1,}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z0-9\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z\p{L}]+[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{1,3}\d{0,4}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{0,4}[a-z\p{L}]{0,2}\b\R*\b[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]{0,2}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{5}[\.\,\-\:\;\•\|\&\/*\!\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]+)\b
condition: all
subrules:
- searchstring: (GmbH|mbH|GbR|\sAG\s|\sKG\s|OHG|e.K.|Meister(betrieb)*)
searchtyp: is not
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: \b(Vorname1\s*|Nachname1)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (?=^([^1]*(1([^2]|$)|12([^3]|$)|123([^4]|$)|1234([^5]|$)|12345([^6]|$)(123456([^L])|$))?)*$)^(?>(^([a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+)))\b\N*?\b(?=\W{1,}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z0-9\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z\p{L}]+[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{1,3}\d{0,4}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{0,4}[a-z\p{L}]{0,2}\b\R*\b[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]{0,2}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{5}[\.\,\-\:\;\•\|\&\/*\!\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]+)\b
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_004:
# Verkäufer mittels Adresse finden ==> Käufer 2
tagname: §tagname_RegEx
tagname_RegEx: (?i)(?=^([^1]*(1([^2]|$)|12([^3]|$)|123([^4]|$)|1234([^5]|$)|12345([^6]|$)|123456([^7]|$)|1234567([^8]|$)(12345678([^L])|$))?)*$)^(?>[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+)\b\N*?\b(?=\W{1,}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z0-9\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z\p{L}]+[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{1,3}\d{0,4}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{0,4}[a-z\p{L}]{0,2}\b\R*\b[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]{0,2}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{5}[\.\,\-\:\;\•\|\&\/*\!\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]+)\b
condition: all
subrules:
- searchstring: (GmbH|mbH|GbR|\sAG\s|\sKG\s|OHG|e.K.|Meister(betrieb)*)
searchtyp: is not
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: \b(Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (?=^([^1]*(1([^2]|$)|12([^3]|$)|123([^4]|$)|1234([^5]|$)|12345([^6]|$)|123456([^7]|$)|1234567([^8]|$)(12345678([^L])|$))?)*$)^(?>[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+?[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z0-9\-\p{L}]+)\b\N*?\b(?=\W{1,}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z0-9\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,2}[a-z\p{L}]+[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{1,3}\d{0,4}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{0,4}[a-z\p{L}]{0,2}\b\R*\b[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]{0,2}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}\d{5}[\.\,\-\:\;\•\|\&\/*\!\ ]{0,3}[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]*[\.\,\-\:\;\•\|\&\/*\!\(\)\ ]{0,3}[a-z\p{L}]+)\b
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_005:
# Verkäufer mittels GmbH / GbR / AG etc. finden
tagname: §tagname_RegEx
tagname_RegEx: (?i)(.+?(GmbH|mbH|GbR|\sAG\s|\sKG\s|OHG|e.K.|Meister(betrieb)*))
condition: all
subrules:
- searchstring: \b(Vorname1\s*|Nachname1|Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (GmbH|mbH|GbR|\sAG\s|\sKG\s|OHG|e.K.|Meister(betrieb)*)
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_006:
# Artikel Name Variante 1
tagname: §tagname_RegEx
tagname_RegEx: (?i)((?<=\N)(.{0,5}\w{0}\d{0,12}\s*))\b\K(?:[a-z\p{L}]+[\.\-\:\;\!\(\)\[\]\ ]+[a-z0-9\p{L}\!]+)([\.\-\:\;\!\(\)\[\]\ ]*[a-z0-9\p{L}]*[\.\-\:\;\!\(\)\[\]\ ]*[a-z0-9\p{L}]*)\b(?=.*\s\d{1,3}[\,\.]\d{2,4}[^\.](\p{Sc}|EUR){0,1})
condition: all
subrules:
- searchstring: \b(Vorname1\s*|Nachname1|Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: ((?<=\N)(.{0,5}\w{0}\d{0,12}\s*))\b\K(?:[a-z\p{L}]+[\.\-\:\;\!\(\)\[\]\ ]+[a-z0-9\p{L}\!]+)([\.\-\:\;\!\(\)\[\]\ ]*[a-z0-9\p{L}]*[\.\-\:\;\!\(\)\[\]\ ]*[a-z0-9\p{L}]*)\b(?=.*\s\d{1,3}[\,\.]\d{2,4}[^\.](\p{Sc}|EUR){0,1})
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false
rule_007:
# Artikel Name Variante 2 ==> fallback
tagname: §tagname_RegEx
tagname_RegEx: (?i)(?=(Bezeichnung|Benennung|Designation|Beschreibung|Description|\bArtikel[^:]|Article[^:]\b))(.+?\R{1,3}?).+?(\W+\S*\s*\d{5,}?\s*)\K(?:[a-z\p{L}]+[\.\-\:\;\! ]*[a-z\p{L}\\\!]*[\.\-\:\;\! ]*[a-z0-9\p{L}]*[\.\-\:\;\! ]*[a-z0-9\p{L}]*)
multilineregex: true
condition: all
subrules:
- searchstring: ((?<=\N)(.{0,5}\w{0}\d{0,12}\s*))\b\K(?:[a-z\p{L}]+[\.\-\:\;\!\ ]+[a-z0-9\p{L}\!]+)([\.\-\:\;\!\ ]*[a-z0-9\p{L}]*[\.\-\:\;\!\ ]*[a-z0-9\p{L}]*)\b(?=.*\s\d{1,3}[\,\.]\d{2,4}[^\.](\p{Sc}|EUR){0,1})
searchtyp: does not contain
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: \b(Vorname1\s*|Nachname1|Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (?=(Bezeichnung|Benennung|Designation|Beschreibung|Description|\bArtikel[^:]|Article[^:]\b))(.+?\R{1,3}?).+?(\W+\S*\s*\d{5,}?\s*)\K(?:[a-z\p{L}]+[\.\-\:\;\! ]*[a-z\p{L}\\\!]*[\.\-\:\;\! ]*[a-z0-9\p{L}]*[\.\-\:\;\! ]*[a-z0-9\p{L}]*)
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
rule_008:
# Rechnungsnummer
tagname: Rechnungsnummer_§tagname_RegEx
tagname_RegEx: (?i)(?|(((Rechnung\S{0,2})|(Beleg\S{0,2})|(Lieferschein\S{0,2}))\s*(([N|n]um\S*|Nr[\.\-\:\;\/\|\s]{0,3})|(RE[\.\-\:\;\/\|\s]NR)\S*)*)\s+?\K(\S*\s*?(\s*\d)+))+\b
condition: all
subrules:
- searchstring: \b(Vorname1\s*|Nachname1|Vorname2\s*|Nachname2)\b
searchtyp: is
isRegEx: true
multilineregex: true
source: content
casesensitive: false
- searchstring: (Rechnung|Invoice|Lieferschein|delivery note|Quittung|receipt|Bestellung|Auftrag|Online-Bestellung|Online-Auftrag|order|Barkauf|Barverkauf|cash purchase)
searchtyp: contains
isRegEx: true
multilineregex: false
source: content
casesensitive: false
- searchstring: (?|(((Rechnung\S{0,2})|(Beleg\S{0,2})|(Lieferschein\S{0,2}))\s*(([N|n]um\S*|Nr[\.\-\:\;\/\|\s]{0,3})|(RE[\.\-\:\;\/\|\s]NR)\S*)*)\s+?\K(\S*\s*?(\s*\d)+))+\b
searchtyp: is
isRegEx: true
multilineregex: false
source: content
casesensitive: false