I am having the following string 4 (10.3%) and would like to receive 4.
I tried:
let s = "4 (10.3%)"
s.replace("/\s+\((.*?)\)", "");
console.log(s)
However, I still get the initial string back.
Any suggestion what I am doing wrong?
I appreciate your replies!