Test, validate and match regular expressions
This regular expression matches full or partial Discover credit card numbers, which typically start with "6011" or "65". It successfully captures numbers formatted with spaces or dashes (e.g., 6011-1234-5678-9012) as well as unformatted continuous strings ending at a line break. It is ideal for payment form validation or extracting financial data.