Using React Native TypeScript, I am looking to extract only the numbers from a string group without any commas. Is there a way to achieve this using regex match or replace?
taskname = TASK_XC0.0.0.0.89t_abc_test
let task = taskname.match( /[0-9]+/g, ''); //0,0,0,0,89
The desired output should be 000089