Which regex would fit better to extract the last 2 numbers separated by dot
e.g.
abc.98.76.xyz12.34 -> 12.34
qwer12.34.ty.98.76 -> 98.76
I tried \d+(?!\d+)\.\d+(?!\d+)$ but not sure if it’s the best option.
>Solution :
Possible solution is the following:
(\d+\.\d+)$
See explanation at regex101
if you need to specify exact qty of numbers:
(\d{2}\.\d{2})$
Where:
\d - any digit
+ - one o more characters
\. - dot
{2} - exactly two characters
$ - end of string