I have a string 1.5(+1.2/-0.5). I want to use Regex to extract numerical value: {1.5, 1.2, 0.5}.
1.5(+1.2/-0.5)
{1.5, 1.2, 0.5}
My plan is to split the stri
Tried to escape signs like +?
And why not a RegEx like /\d+\.?\d+/ ? This won't split it but return the numbers.
/\d+\.?\d+/