Skip to content

Instantly share code, notes, and snippets.

@fatihacet fatihacet/just-number.js
Last active Dec 10, 2015

Embed
What would you like to do?
get only numbers in a string with regex
var k = '3dsaAdas2dAAASdasdasDŞ321ĞİÜEQWEWQ098"**?_Ü;SDA!22';
k.replace(/\D/g, '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.