Last active
November 17, 2022 15:31
-
-
Save yhau1989/a6d65055d2da13ca04076b060fb657af to your computer and use it in GitHub Desktop.
Replace regex javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let text = 'asda12232353k'; | |
const d = text.replace(/[^0-9, 'K']/g, ""); | |
console.log(d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment