when i complete card number replace dot javascript code example Example: regular expression replace a dot mystring = mystring.replace(/\./g,' ')