Skip to content

Instantly share code, notes, and snippets.

@logeshpaul
Last active November 19, 2021 02:16
Show Gist options
  • Save logeshpaul/2250235 to your computer and use it in GitHub Desktop.
Save logeshpaul/2250235 to your computer and use it in GitHub Desktop.
Js: Extract Numbers from String
var extractNumbers = $(this).val().replace(/[^\d]/g, "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment