Ad Widget

Collapse

Administration > General > Regular expressions > test feature: not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • catkins
    Junior Member
    • Feb 2020
    • 19

    #1

    Administration > General > Regular expressions > test feature: not working

    Testing regex to match an integer. Administration > General > Regular expressions > New regular expression. Using test string "1" without the quotes and expression type "Character string included"
    • ^[[:digit:]]+$ did not match
    • [[:digit:]]+ did not match
    • \d+ did not match
    • \d did not match
    • .* did not match
    • 1 matched
    • ^1$ did not match
    Tested same at https://regex101.com/ using flavour PCRE(PHP) and function Match. All matched

    Versions:Debian package libpcre3 was installed. Re-installed it. Same.

    If I have not misunderstood something relevant, how to investigate and hopefully fix?





  • catkins
    Junior Member
    • Feb 2020
    • 19

    #2
    Thanks cyber

    Comment

    • raoel
      Junior Member
      • Dec 2020
      • 9

      #3
      what was the solution?

      Comment

      • catkins
        Junior Member
        • Feb 2020
        • 19

        #4
        Sorry, I do not remember. I checked issues and logs from Oct 2020 but did not find a reminder

        Comment

        • raoel
          Junior Member
          • Dec 2020
          • 9

          #5

          :-D

          Comment

          • catkins
            Junior Member
            • Feb 2020
            • 19

            #6
            LOL

            To make it even more frustrating -- if I understand this thread correctly -- cyber did answer > I found the answer satisfactory > cyber's answer was removed > I forgot

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4806

              #7
              "Character string not included" and everything works...

              Comment

              • catkins
                Junior Member
                • Feb 2020
                • 19

                #8
                Thanks Cyber, that was what I was doing wrong

                Comment

                Working...