I have a project and this project contains a text, and this text is in the form: patientId xxxxxx, which is in the form patient1075 0944713415. And I want to separate the text from the number, I tried to use several methods, but I could not separate the text from the number.
i need to pass 1075 to backend api, that is mean i need the number.
How can I do that?
                            const d = decrypt(t);
                            console.log('after decrypt: ', d); //patient1075
                            let numb: any = d.replace(/\D/g,'');
                            console.log('ccxcxccxcc: ', numb);
 
     
    