Based on http://www.regular-expressions.info/creditcard.html
This example includes test strings.
This only validates the pattern, and not whether the credit card number passes a checksum validation. See the Luhn algorithm for details https://en.wikipedia.org/wiki/Luhn_algorithm
For an implementation in Lasso, see https://github.com/stevepiercy/sp_valid_creditcard