Ad Widget

Collapse

RegExpr with lookahead and lookbehind

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Admin_LB
    Junior Member
    • Sep 2010
    • 1

    #1

    RegExpr with lookahead and lookbehind

    I've tested the following expression successfully with the regExCoach:
    (?<=<span>)[0-9.]*(?=</span>) for the following tagetstring <span>123.45</span> to extract the number.

    But the test in the zabbix regex editor fails:



    Do I have a mistake with my thinking?
    Is there any way to extract values like this from a website?

    Many thanks!
  • albert_ra
    Junior Member
    • Jun 2020
    • 1

    #2
    I've tried negative lookahead with logrt, and it workd.
    Last edited by albert_ra; 17-06-2020, 16:06.

    Comment

    Working...