(?<!\d)\d+\.\d+ should match the numbers at the end of the lines and yet it won’t. What am I doing wrong?

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 month ago

    What am I doing wrong?

    Not specifying the regex engine you use, first of all. Second, also describe what you mean by numbers that you want to match.

    • sabreW4K3@lazysoci.alOP
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Not specifying the regex engine you use

      Sorry, I have no clue.

      Second, also describe what you mean by numbers that you want to match.

      So you see in the screenshot, there’s a random number at the end of some of the lines, I’m trying to match that.

      • bizdelnick@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        29 days ago

        Sorry, I have no clue.

        What do you use to apply your regex? Programming language, library, command line tool etc.

        there’s a random number at the end of some of the lines, I’m trying to match that.

        Is it decimal? One digit or multiple digits? Natural, rational?

      • bizdelnick@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        29 days ago

        BTW if you don’t need to capture the number, \d$ should match what you need. If regex syntax supports \d, of course.