KAU to remove the word UAH, skip the comma, the symbol $?

need a regular expression to pick up those things in the question title

the problem is that this could all occur simultaneously in a number or word or maybe only a few from the list

example
UAH123,123.90 with a need 123123.90
$123 123,90 need 123123.90

Thank you
April 3rd 20 at 17:16
1 answer
April 3rd 20 at 17:18
Solution
let str = "UAH123,123.90 with";
 let res = str.replace(/\D/g, "");
 console.log(res);
not suitable UAH123,123.90 with received 12312390 and need 123123.90 - grady.Herman commented on April 3rd 20 at 17:21
@grady.Herman, let res = str.replace(/[^0-9.]/g, ""); - ken90 commented on April 3rd 20 at 17:24
@grady.Hermanon here yet for this number $123 123,90 , I forgot, It also will not work as it should - ken90 commented on April 3rd 20 at 17:27
@ken90, super thank you - grady.Herman commented on April 3rd 20 at 17:30
@ken90, help pliz) regular season minus also removes - grady.Herman commented on April 3rd 20 at 17:33
@grady.Herman, give me an example line - ken90 commented on April 3rd 20 at 17:36
@ken90, an Example UAH $8,879.31 or -$8,879.31 response 8879.31 and -8879.31 - grady.Herman commented on April 3rd 20 at 17:39
@ken90, /[^-?0-9.]/g rsiv - grady.Herman commented on April 3rd 20 at 17:42

Find more questions by tags JavaScriptRegular expressions