Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] Parser - brauche Hilfe bei regex

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Parser - brauche Hilfe bei regex

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active last edited by

      Hallo,

      ich möchte einen Heizölpreis auslesen.

      Bei der Seite "http://www.tecson.de" ist im Seitenquelltext folgendes:

      
      Referenzpreis heute:
      **73,4 ct/l**
      Veränderung:
      
      

      Ich probiere nun schon länger die Zahl "73,4 ct/l" per rexex (und dann Parser) auszulesen.

      Auf der Seite "https://regex101.com/" hab ich schon etliches probiert.

      Bekomme dies aber nicht hin.

      Hat jemand mal eine Tip wie der Regex aussehen könnte.

      mfg

      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 last edited by

        Du solltest die https://www.tecson.de/pheizoel.html angeben.

        Versuche es mal mit

        **(\d+,?\d? ct/l)**
        
        1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active last edited by

          Danke Paul.

          Ich probiere es aus.

          Mfg

          1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active last edited by

            Hallo Paul,

            es kommt Fehlermeldung:
            1540_bild1.jpg

            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active last edited by

              ich glaub ich habs hinbekommen.

              Vor dem /l musste wohl noch ein \

              **(\d+,?\d? ct/l)

              Ich teste mal weiter.**

              1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active last edited by

                Nachtrag.

                Klappt so wie geschrieben.

                Danke Paul.

                mfg

                1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 last edited by

                  @bahnuhr:

                  Klappt so wie geschrieben. `
                  Markiere bitte das Thema im Betreff des ersten Beitrags als [gelöst].

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  921
                  Online

                  31.7k
                  Users

                  79.9k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  320
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo