Forum Academy Marketplace Showcase Pricing Features

Regex extraction question

I’m trying to capture 2 bits of data in two separate text fields but I’m struggling with one of the regex formulas to achieve it.

I have a text value similar to this: “2.5 xyz / 3.1 abc”

I can extract the first number “2.5” with “^([\d.]{1,3})” but I cannot figure out how to extract just the “3.1” bit. I’ve tried “([(\d.)]){1,3}” but this highlights both values, and I’m just trying to extract the second one.

Any suggestions?