4402030516060735
6011 2079 8625 5705 //doesn't match, you MUST strip out spaces and dashes (-) before running this regex
6011207986255705 //matches since there are no more spaces
I also recommend doing a luhn algorithm check after this if you are verifying credit cards.

4402030516060735
6011 2079 8625 5705 //doesn't match, you MUST strip out spaces and dashes (-) before running this regex
6011207986255705 //matches since there are no more spaces
5441145325415236
I also recommend doing a luhn algorithm check after this if you are verifying credit cards.