WinFuture-Forum.de: RegEx - WinFuture-Forum.de

Zum Inhalt wechseln

Nachrichten zum Thema: Entwicklung
Seite 1 von 1

RegEx Regular Exressions


#1 Mitglied ist offline   olm 

  • Gruppe: aktive Mitglieder
  • Beiträge: 130
  • Beigetreten: 25. Januar 05
  • Reputation: 0

geschrieben 22. September 2020 - 12:47

Hallo,

ich habe leider ein Problem dass ich gerne mit RegEx lösen würde. Leider stelle ich mich zu blöd an.

Ich würde gerne folgende Dinge separieren:

Gruppe 1:
  • Marke
  • strasse
  • diesel


Gruppe 2:
  • Marke
  • strasse
  • diesel


Gruppe x:
  • Marke
  • strasse
  • diesel


Bisher habe ich folgendes versucht. Ich bekomme aber immer nur alle Informationen von einer Tankstelle.
{\"mtsk_id\":\".*?}


Ich habe keinen Plan, wie ich die Informationen separieren kann. ;(

Ich bin über jede Hilfe/Tipp dankbar.

[{"mtsk_id":"8C36F8340060462382136F6EB98CD69A","name":"Aral Tankstelle","marke":"ARAL","laengengrad":"8.45706","breitengrad":"49.4941","strasse":"Hafenstra\\u00dfe","hausnr":"19-21","plz":"68159","ort":"Mannheim","datum":"2020-09-22 09:26:01","diesel":"1.049","entfernung":"4.62"},{"mtsk_id":"A674473DBDC44E059677E4DD74ED0184","name":"Aral Tankstelle","marke":"ARAL","laengengrad":"8.46397","breitengrad":"49.5062","strasse":"Unterm\\u00fchlaustra\\u00dfe","hausnr":"50","plz":"68169","ort":"Mannheim","datum":"2020-09-22 07:58:02","diesel":"1.099","entfernung":"4.49"},{"mtsk_id":"51D4B652A0951AA0E10080009459E03A","name":"JET MANNHEIM UNTERMUEHLAUSTR. 83","marke":"JET","laengengrad":"8.46769","breitengrad":"49.509","strasse":"UNTERMUEHLAUSTR. 83","hausnr":"","plz":"68169","ort":"MANNHEIM","datum":"2020-09-22 09:26:01","diesel":"1.079","entfernung":"4.39"},{"mtsk_id":"64E407D4BF534EAF9560DB30345877DC","name":"MANNHEIM - UNTERMUEHLAUSTR. 105-107","marke":"Agip","laengengrad":"8.46993","breitengrad":"49.5108","strasse":"Untermuehlaustr.","hausnr":"105-107","plz":"68169","ort":"Mannheim","datum":"2020-09-22 09:36:02","diesel":"1.089","entfernung":"4.35"},{"mtsk_id":"70543EC945A349E2A86C2D2FA7ECE892","name":"Sb Mannheim Waldhofstrasse. 62","marke":"SB","laengengrad":"8.47102","breitengrad":"49.5022","strasse":"Waldhofstrasse.","hausnr":"62","plz":"68169","ort":"Mannheim","datum":"2020-09-22 07:47:02","diesel":"1.079","entfernung":"3.85"},{"mtsk_id":"7FFCAB6B358A4309ACE792CD8A20BC81","name":"Aral Tankstelle","marke":"ARAL","laengengrad":"8.47813","breitengrad":"49.4607","strasse":"Steubenstra\\u00dfe","hausnr":"48","plz":"68163","ort":"Mannheim","datum":"2020-09-22 09:20:01","diesel":"1.049","entfernung":"4.44"},{"mtsk_id":"80CC039E493E4B2BA9E01044B6C63329","name":"Shell Mannheim Seckenheimer Str. 17","marke":"Shell","laengengrad":"8.47949","breitengrad":"49.4805","strasse":"Seckenheimer Str.","hausnr":"17","plz":"68165","ort":"Mannheim","datum":"2020-09-22 08:43:01","diesel":"1.109","entfernung":"3.12"},{"mtsk_id":"21BE1B9C5EB74A6E83FE951149D252FC","name":"Esso Tankstelle","marke":"ESSO","laengengrad":"8.48084","breitengrad":"49.4577","strasse":"STEUBENSTR. 89-91","hausnr":"","plz":"68199","ort":"MANNHEIM","datum":"2020-09-22 09:54:01","diesel":"1.039","entfernung":"4.56"},{"mtsk_id":"F68AD3B144C247B0BA9BEB23163B7EE3","name":"Shell Mannheim Neckarauer Str. 245","marke":"Shell","laengengrad":"8.48404","breitengrad":"49.4681","strasse":"Neckarauer Str.","hausnr":"245","plz":"68199","ort":"Mannheim","datum":"2020-09-22 09:52:02","diesel":"1.039","entfernung":"3.57"},{"mtsk_id":"8AF1A656418F4B9AB2A5E0D6AAB41D08","name":"Shell Mannheim Viehhofstr. 21- 23","marke":"Shell","laengengrad":"8.48457","breitengrad":"49.4742","strasse":"Viehhofstr.","hausnr":"21- 23","plz":"68165","ort":"Mannheim","datum":"2020-09-22 09:52:02","diesel":"1.039","entfernung":"3.11"},{"mtsk_id":"1BEDC780C0CA407BA0DDC6493B48C5E5","name":"TOTAL MANNHEIM","marke":"TOTAL","laengengrad":"8.48425","breitengrad":"49.5133","strasse":"HAFENBAHNSTR 74","hausnr":"","plz":"68305","ort":"MANNHEIM","datum":"2020-09-22 09:41:01","diesel":"1.089","entfernung":"3.72"},{"mtsk_id":"16C7CC25CFDF4E1881B390D7F17F35FE","name":"Mannheim M\\u00f6hlstra\\u00dfe","marke":"Mr. Wash Autoservice AG","laengengrad":"8.4874","breitengrad":"49.4751","strasse":"M\\u00f6hlstra\\u00dfe","hausnr":"7-17","plz":"68165","ort":"Mannheim","datum":"2020-09-22 09:35:02","diesel":"1.029","entfernung":"2.88"},{"mtsk_id":"17AC8E20E5544819873D0E6776201823","name":"Aral Tankstelle","marke":"ARAL","laengengrad":"8.48796","breitengrad":"49.4757","strasse":"M\\u00f6hlstra\\u00dfe","hausnr":"1","plz":"68165","ort":"Mannheim","datum":"2020-09-22 09:23:01","diesel":"1.049","entfernung":"2.81"},{"mtsk_id":"1DB8C36927424F18A4CBFCB536294636","name":"Aral Tankstelle","marke":"ARAL","laengengrad":"8.48771","breitengrad":"49.4966","strasse":"Friedrich-Ebert-Stra\\u00dfe","hausnr":"12","plz":"68167","ort":"Mannheim","datum":"2020-09-22 09:23:01","diesel":"1.089","entfernung":"2.51"}

Dieser Beitrag wurde von olm bearbeitet: 22. September 2020 - 12:48

0

Anzeige



#2 Mitglied ist offline   olm 

  • Gruppe: aktive Mitglieder
  • Beiträge: 130
  • Beigetreten: 25. Januar 05
  • Reputation: 0

geschrieben 22. September 2020 - 13:25

Ich habe eine Lösung gefunden.


{"mtsk_id".*?marke":"(.*?)",.*?strasse":"(.*?)",.*?diesel":"(.*?)",.*?}


Ziemlich harter Tobak diese RegEx Geschichte.
0

Thema verteilen:


Seite 1 von 1

1 Besucher lesen dieses Thema
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0