Skip to content

Instantly share code, notes, and snippets.

@fatihacet
Last active December 10, 2015 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatihacet/4353339 to your computer and use it in GitHub Desktop.
Save fatihacet/4353339 to your computer and use it in GitHub Desktop.
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