Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Cort Larsen 421 posts 1038 karma points
    Aug 11, 2014 @ 07:38
    Peter Cort Larsen
    0

    Dankort validering

    Hi,

     

    Anyone have a regex for credit card validation, that also accepts Dankort?

    Maybe a prof regex guy can extend this pattern:

    /^((4\d{3})|(5[1-5]\d{2}))(-?|\040?)(\d{4}(-?|\040?)){3}|^(3[4,7]\d{2})(-?|\040?)\d{6}(-?|\040?)\d{5}/


     

Please Sign in or register to post replies

Write your reply to:

Draft