• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    HTTP Retriever - Value RegEx works whit accent

    How-To
    3
    8
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Francisco Salinas
      last edited by

      Hi. I am trying to get points from a web page using HTTP Retriever. Everything works fine until in the RegEx Value I place a word with access. for example:
      <tr><td><span>(Cerro Patacón)</span></td><td><span>(.*?)</span></td></tr>
      I get "Validation Error - No value match made for point Cerro Patacón.
      How can I solved it?

      Thanks you in advance..

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by MattFox

        The following characters have special meaning, and should be preceded by a \ (backslash) to represent a literal character:
        +*?^$.[]{}()|/

        So your

        <tr><td><span>(Cerro Patacón)</span></td><td><span>(.*?)</span></td></tr>
        

        Should be

        <tr><td><span>\(Cerro Patacón\)</span></td><td><span>(.*?)</span></td></tr>
        

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • F
          Francisco Salinas
          last edited by phildunlap

          Sorry my error the original regex value is
          <tr><td><span>Cerro Patacón</span></td><td><span>(.*?)</span></td></tr>
          I try you suggestion
          <tr><td><span>\Cerro Patacón\</span></td><td><span>(.*?)</span></td></tr>
          but I get this error:
          Illegal/unsupported escape sequence near index 15 <tr><td><span>\Cerro Patacón</span></td><td><span>(.*?)</span></td></tr> ^

          1 Reply Last reply Reply Quote 0
          • MattFoxM
            MattFox
            last edited by

            @francisco-salinas said in HTTP Retriever - Value RegEx works whit accent:

            <tr><td><span>Cerro Patacón</span></td><td><span>(.?)</span></td></tr>

            If that's the case:

            <tr><td><span>Cerro Patacón<\/span><\/td><td><span>(.?)<\/span><\/td><\/tr>
            

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

            1 Reply Last reply Reply Quote 0
            • F
              Francisco Salinas
              last edited by

              I get this error:
              Validation error - No value match made for point Cerro Patacón

              MattFoxM 1 Reply Last reply Reply Quote 0
              • MattFoxM
                MattFox @Francisco Salinas
                last edited by

                @francisco-salinas
                If you have a copy of the source you're trying to parse from, use regexr.com and work from that to create your RegExp string.
                The Cerro Patacón should be part of the text, not a variable. I think there's a lot of detail missing here that you've not made clear.

                Do not follow where the path may lead; go instead where there is no path.
                And leave a trail - Muriel Strode

                1 Reply Last reply Reply Quote 0
                • phildunlapP
                  phildunlap
                  last edited by

                  Hi Francisco, welcome to the forum!

                  Regex can certainly match the accent. You can see that here, where I was using the browser developer tools:

                  0_1568123682099_matchesAccent.png

                  So I have to agree with Fox that part of the question is hidden in not having the source text that's being matched. . should match everything but newlines. If there are newlines, you could try picking a character that doesn't appear and using a ([^~]*) or a ((?:.|\r|\n)*)

                  1 Reply Last reply Reply Quote 0
                  • F
                    Francisco Salinas
                    last edited by

                    Hi phil. Thanks you. I used your recommendation and found that the regex value was waiting instead of Cerro Patacón, Cerro Patacún.
                    I changed that in the regex value and voila. is working.

                    ú ú
                    ó ó
                    í Ã
                    é é
                    á á

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