Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to remove strings and special characters from string and show only numbers without comma using regex?

$
0
0

In My case I am using react native typescript, I want to get only numbers from group string without comma. How to get it 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 

Actual output need to get 000089


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>