match if the string is a credit card
Edit anything to remix
JavaScript

Expression

/
/gm
Test bench

Sample text

6 matches
Structure

Railroad diagram

Live

Strings that match

  • 4569403961014710
  • 5191914942157165
  • 370341378581367
  • 38520000023237
  • 6011000000000000
  • 3566002020360505

Strings that don’t match

  • 1234566660000222