I am confused on how to get the number in the string below. I crafted a regex
$regex = '(?s)^.+\bTotal Members in Group: ([\d.]+).*$'
I need only the number part 2
inside a long string a line reads Total Members in Group: 2
.
My $regex
returns me the entire line but what i really need is the number.
The number is random