Created
November 24, 2014 05:06
-
-
Save emohamed/50bd6ff652bcb2f39c17 to your computer and use it in GitHub Desktop.
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Credit Card Numbers Normalization Example</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var creditCardNumber = '00000000 00000000'; | |
console.log(creditCardNumber.replace(/[^0-9]/, '')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment