JSFiddle - React, Tailwind, and code Playground
by justinwyllie
JavaScript
var str = "xx123xx"
var t = str.replace(/\D/g, '')
alert(t)
alert(parseInt('333www'))
alert(parseInt('www333www'))
by justinwyllie
var str = "xx123xx"
var t = str.replace(/\D/g, '')
alert(t)
alert(parseInt('333www'))
alert(parseInt('www333www'))