Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

parse credit card swipe data to correct fields

Avatar of Florin Petrutiu
Florin PetrutiuFlag for United States of America asked on
10 Comments1 Solution3829 ViewsLast Modified:
Hello all,

When you swipe a crefit card you get the following:


WHERE XXXXXXXXXXXXXXXX is the credit card #, YR- expiration date year MT-expiration date month

I have a web form that will swipe a card's raw data into, I need a Java script that would take that card data and spit it up into human friendly fields like so:

First Name: FIRST NAME
Last Name: LAST NAME

I will still need the raw data intact in the field it was swiped to but copy out the relevant data to other text fields in the form.
Avatar of leakim971
leakim971Flag of Guadeloupe imageMultitechnician
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers