Timeline for Validating a credit card
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 9, 2014 at 0:23 | comment | added | Matthew Jacobs | Thanks - I don't know THAT much regex stuff. :) | |
| Jul 9, 2014 at 0:20 | history | edited | Matthew Jacobs | CC BY-SA 3.0 | incorporating changes suggested by @schism |
| Jul 8, 2014 at 5:10 | comment | added | Schism | \d exists, so why not use it instead of [0-9]? The capturing group is also not needed. The regex could be written as ^4\d{12}\d{3}?$. Plus, I question using a string when Javascript has built-in regex support; something like checkPattern: /^4\d{12}\d{3}?$/ might be nicer. | |
| Jul 8, 2014 at 1:52 | history | answered | Matthew Jacobs | CC BY-SA 3.0 |